[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - sc/source

Aron Budea baron at caesar.elte.hu
Fri Nov 4 11:40:07 UTC 2016


 sc/source/core/data/table3.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 610be3d128fe19b2d8458a479005314045eab830
Author: Aron Budea <baron at caesar.elte.hu>
Date:   Fri Oct 14 15:37:48 2016 +0200

    tdf#79892: Improve performance of transliteration
    
    Pass resolved language to transliterate call, so it doesn't
    have to be resolved each time inside.
    
    Change-Id: Ibcad3b8517cb92c3462e14207c0a79ca2c76d73b
    Reviewed-on: https://gerrit.libreoffice.org/29829
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>
    (cherry picked from commit 2ed5057993fa8d0f57531303e6c9fafc37138737)
    Reviewed-on: https://gerrit.libreoffice.org/30558
    Reviewed-by: jan iversen <jani at documentfoundation.org>
    Tested-by: jan iversen <jani at documentfoundation.org>

diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 7edc9a8..d0f4e09 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -2499,11 +2499,12 @@ public:
                 else
                 {
                     OUString aQueryStr = rItem.maString.getString();
+                    const LanguageType nLang = ScGlobal::pSysLocale->GetLanguageTag().getLanguageType();
                     OUString aCell( mpTransliteration->transliterate(
-                        aCellStr.getString(), ScGlobal::eLnge, 0, aCellStr.getLength(),
+                        aCellStr.getString(), nLang, 0, aCellStr.getLength(),
                         nullptr ) );
                     OUString aQuer( mpTransliteration->transliterate(
-                        aQueryStr, ScGlobal::eLnge, 0, aQueryStr.getLength(),
+                        aQueryStr, nLang, 0, aQueryStr.getLength(),
                         nullptr ) );
                     sal_Int32 nIndex = (rEntry.eOp == SC_ENDS_WITH || rEntry.eOp == SC_DOES_NOT_END_WITH) ?
                         (aCell.getLength() - aQuer.getLength()) : 0;


More information about the Libreoffice-commits mailing list