diff options
Diffstat (limited to 'sal/textenc/convertsinglebytetobmpunicode.cxx')
-rw-r--r-- | sal/textenc/convertsinglebytetobmpunicode.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/textenc/convertsinglebytetobmpunicode.cxx b/sal/textenc/convertsinglebytetobmpunicode.cxx index 2cfbb83728ba..9bb994d2a9c8 100644 --- a/sal/textenc/convertsinglebytetobmpunicode.cxx +++ b/sal/textenc/convertsinglebytetobmpunicode.cxx @@ -126,7 +126,8 @@ sal_Size rtl_textenc_convertBmpUnicodeToSingleByte( for (std::size_t i = 0; i < entries; ++i) { if (c < ranges[i].unicode) { break; - } else if (c <= sal::static_int_cast< sal_uInt32 >( + } + if (c <= sal::static_int_cast< sal_uInt32 >( ranges[i].unicode + ranges[i].range)) { if (destBufEnd - destBufPtr < 1) { |