diff options
author | crupest <crupest@outlook.com> | 2022-01-27 21:37:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-27 21:37:38 +0800 |
commit | 103bcb137273729a0f23ff3771e26150a64454ba (patch) | |
tree | 5d75e869cc4b1bf0f2afdfbc9ed5ff0f78e0d030 /src/common/String.cpp | |
parent | 560c0ead613658a2b7444907c3d1d69e49be8c32 (diff) | |
download | cru-103bcb137273729a0f23ff3771e26150a64454ba.tar.gz cru-103bcb137273729a0f23ff3771e26150a64454ba.tar.bz2 cru-103bcb137273729a0f23ff3771e26150a64454ba.zip |
...
Diffstat (limited to 'src/common/String.cpp')
-rw-r--r-- | src/common/String.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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."); } } |