summaryrefslogtreecommitdiff
path: root/i18npool/source/indexentry/indexentrysupplier_common.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/indexentry/indexentrysupplier_common.cxx')
-rw-r--r--i18npool/source/indexentry/indexentrysupplier_common.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier_common.cxx b/i18npool/source/indexentry/indexentrysupplier_common.cxx
index 01dcb621986e..cd441686bdc4 100644
--- a/i18npool/source/indexentry/indexentrysupplier_common.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_common.cxx
@@ -119,7 +119,7 @@ IndexEntrySupplier_Common::getEntry( const OUString& IndexEntry,
// rLocale for phonetic entry is same as aLocale for algorithm,
// which means Chinese phonetic will not be used for Japanese algorithm;
// phonetic entry is not blank.
- if (usePhonetic && PhoneticEntry.getLength() > 0 && rLocale.Language == aLocale.Language &&
+ if (usePhonetic && !PhoneticEntry.isEmpty() && rLocale.Language == aLocale.Language &&
rLocale.Country == aLocale.Country && rLocale.Variant == aLocale.Variant)
return PhoneticEntry;
else