diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-10-29 14:20:57 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-10-29 23:53:40 +0200 |
commit | d1a0bb1257f868c1424e503a872af8dd4cb4c7b0 (patch) | |
tree | 0055d1734b5fef284ff75f13707aa390d055bc26 /i18npool | |
parent | 86bd18e062cf4829e2b3b8ba7e18170deb7b79ac (diff) |
fix comparison when searching cache
This made the cache always fail and re-cache, making CJK text layout
slower over time. A mistake from ef513fd4b049b214a03fbe6e that
converted !strcmp() to != instead of ==.
Change-Id: Ib70579cd36d7b1df062e4d067e03f5c65e34b142
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124203
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/breakiterator/xdictionary.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx index 947a23c5073b..6b57433370c7 100644 --- a/i18npool/source/breakiterator/xdictionary.cxx +++ b/i18npool/source/breakiterator/xdictionary.cxx @@ -152,7 +152,7 @@ void xdictionary::initDictionaryData(const char *pLang) osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ); for(const datacache & i : aLoadedCache) { - if( i.maLang != pLang ) + if( i.maLang == pLang ) { data = i.maData; return; |