diff options
Diffstat (limited to 'i18npool/source')
-rw-r--r-- | i18npool/source/textconversion/textconversion_zh.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/source/textconversion/textconversion_zh.cxx b/i18npool/source/textconversion/textconversion_zh.cxx index d45baa553e53..23689c0b568e 100644 --- a/i18npool/source/textconversion/textconversion_zh.cxx +++ b/i18npool/source/textconversion/textconversion_zh.cxx @@ -218,7 +218,8 @@ TextConversion_zh::getWordConversion(const OUString& aText, sal_Int32 nStartPos, while (bottom <= top && !found) { current = (top + bottom) / 2; - const sal_Int32 result = word.compareTo(wordData + entry[current]); + const sal_Int32 result = rtl_ustr_compare( + word.getStr(), wordData + entry[current]); if (result < 0) top = current - 1; else if (result > 0) |