diff options
author | Aron Budea <baron@caesar.elte.hu> | 2016-10-25 01:01:01 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-10-25 19:28:30 +0000 |
commit | 8175e30b732e3f6f4f1058934e7fe8a1189f40cf (patch) | |
tree | 6eebe08f39eb258dfc07d2576414f837af227c5b /sc/source/core/data/dpcache.cxx | |
parent | 475e4b477c6d7ae114c3ae51ba4872882af67a68 (diff) |
tdf#79892: Pass resolved locale to transliterate calls in Calc
Instead of ScGlobal::eLnge, use
ScGlobal::pSysLocale->GetLanguageTag().getLanguageType().
Change-Id: Ie0aa90098860ac2b6cee195180dbc213eaf3b5f8
Reviewed-on: https://gerrit.libreoffice.org/30240
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/core/data/dpcache.cxx')
-rw-r--r-- | sc/source/core/data/dpcache.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx index 49b1d61452ac..03ba6588301b 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -562,10 +562,11 @@ bool ScDPCache::ValidQuery( SCROW nRow, const ScQueryParam &rParam) const { OUString aQueryStr = rEntry.GetQueryItem().maString.getString(); css::uno::Sequence< sal_Int32 > xOff; + const LanguageType nLang = ScGlobal::pSysLocale->GetLanguageTag().getLanguageType(); OUString aCell = pTransliteration->transliterate( - aCellStr, ScGlobal::eLnge, 0, aCellStr.getLength(), &xOff); + aCellStr, nLang, 0, aCellStr.getLength(), &xOff); OUString aQuer = pTransliteration->transliterate( - aQueryStr, ScGlobal::eLnge, 0, aQueryStr.getLength(), &xOff); + aQueryStr, nLang, 0, aQueryStr.getLength(), &xOff); bOk = (aCell.indexOf( aQuer ) != -1); } if (rEntry.eOp == SC_NOT_EQUAL) |