[Libreoffice-commits] core.git: sw/source

Eike Rathke erack at redhat.com
Thu Oct 24 03:37:17 PDT 2013


 sw/source/ui/docvw/edtwin.cxx |   21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)

New commits:
commit 642f900a09f668e9c3d09e23cc23be9d99b46268
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Oct 24 12:36:05 2013 +0200

    use MsLangId::isNonLatinWestern()
    
    Change-Id: I3aba3f85face62e0b8d54aebb92412c350aa2923

diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 31e4b70..9433cbf 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -796,7 +796,7 @@ static sal_uInt16 lcl_isNonDefaultLanguage(LanguageType eBufferLanguage, SwView&
                         (i18n::UnicodeScript)GetAppCharClass().getScript( rInBuffer, 0 ) :
                         i18n::UnicodeScript_kScriptCount;
 
-                    bool bSystemIsNonLatin = false, bOOoLangIsNonLatin = false;
+                    bool bSystemIsNonLatin = false;
                     switch ( eType )
                     {
                         case i18n::UnicodeScript_kGreek:
@@ -809,24 +809,7 @@ static sal_uInt16 lcl_isNonDefaultLanguage(LanguageType eBufferLanguage, SwView&
                             break;
                     }
 
-                    switch ( eLang )
-                    {
-                        case LANGUAGE_AZERI_CYRILLIC:
-                        case LANGUAGE_BOSNIAN_CYRILLIC_BOSNIA_HERZEGOVINA:
-                        case LANGUAGE_BULGARIAN:
-                        case LANGUAGE_GREEK:
-                        case LANGUAGE_RUSSIAN:
-                        case LANGUAGE_RUSSIAN_MOLDOVA:
-                        case LANGUAGE_SERBIAN_CYRILLIC_SAM:
-                        case LANGUAGE_SERBIAN_CYRILLIC_BOSNIA_HERZEGOVINA:
-                        case LANGUAGE_UZBEK_CYRILLIC:
-                        case LANGUAGE_UKRAINIAN:
-                        case LANGUAGE_BELARUSIAN:
-                            bOOoLangIsNonLatin = true;
-                            break;
-                        default:
-                            break;
-                    }
+                    bool bOOoLangIsNonLatin = MsLangId::isNonLatinWestern( eLang);
 
                     bLang = (bSystemIsNonLatin != bOOoLangIsNonLatin);
                 }


More information about the Libreoffice-commits mailing list