summaryrefslogtreecommitdiff
path: root/sal/textenc/tcvtutf8.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/textenc/tcvtutf8.cxx')
-rw-r--r--sal/textenc/tcvtutf8.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/textenc/tcvtutf8.cxx b/sal/textenc/tcvtutf8.cxx
index 1f0b2bfc96ef..f9c9879c54a3 100644
--- a/sal/textenc/tcvtutf8.cxx
+++ b/sal/textenc/tcvtutf8.cxx
@@ -163,7 +163,7 @@ sal_Size ImplConvertUtf8ToUnicode(
*pDestBufPtr++ = (sal_Unicode) nUtf32;
else
goto no_output;
- else if (nUtf32 <= 0x10FFFF)
+ else if (rtl::isUnicodeCodePoint(nUtf32))
if (pDestBufEnd - pDestBufPtr >= 2)
{
*pDestBufPtr++ = (sal_Unicode) ImplGetHighSurrogate(nUtf32);