From 103bcb137273729a0f23ff3771e26150a64454ba Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 27 Jan 2022 21:37:38 +0800 Subject: ... --- src/common/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/String.cpp') diff --git a/src/common/String.cpp b/src/common/String.cpp index e791d119..a43c2abd 100644 --- a/src/common/String.cpp +++ b/src/common/String.cpp @@ -290,7 +290,7 @@ String& String::Trim() { } void String::AppendCodePoint(CodePoint code_point) { - if (Utf16EncodeCodePointAppend(code_point, *this)) { + if (!Utf16EncodeCodePointAppend(code_point, *this)) { throw TextEncodeException(u"Code point out of range."); } } -- cgit v1.2.3