| commit | a94b58277c7aeaa83ce14347cd0b8f7137969d03 | [log] |
|---|---|---|
| author | Luboš Luňák <l.lunak@collabora.com> | Fri Oct 29 14:20:57 2021 +0200 |
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | Sat Oct 30 07:48:04 2021 +0200 |
| tree | 72716b3491037aba011415ec464b847dfc962f40 | |
| parent | dc32231639615aa2ded614a9e120e7adc8e03e6f [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/+/124432 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Tested-by: Luboš Luňák <l.lunak@collabora.com> (cherry picked from commit 5b38b5744af1e896892df708c16b83e1b551d2c7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124206 Tested-by: Jenkins
diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx index 947a23c..6b57433 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;