[PATCH] fdo#45830: Indicate correct default locale setting

Rob Snelders programming at ertai.nl
Tue May 29 14:25:10 PDT 2012


Change-Id: Iac77758e4cdd48629ae276566bec2d7a4b873e38
---
 svx/source/dialog/langbox.cxx |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx
index 0ec2329..a2ec7fd 100644
--- a/svx/source/dialog/langbox.cxx
+++ b/svx/source/dialog/langbox.cxx
@@ -349,7 +349,10 @@ sal_uInt16 SvxLanguageBox::ImplInsertLanguage( const LanguageType nLangType, sal
     LanguageType nRealLang = nLang;
     if (nRealLang == LANGUAGE_SYSTEM)
     {
-        nRealLang = MsLangId::resolveSystemLanguageByScriptType(nRealLang, nType);
+        if (nType == ::com::sun::star::i18n::ScriptType::WEAK)
+            nRealLang = MsLangId::getSystemLanguage();
+        else
+            nRealLang = MsLangId::resolveSystemLanguageByScriptType(nRealLang, nType);
         aStrEntry.AppendAscii(" - ");
         aStrEntry.Append(m_pLangTable->GetString( nRealLang ));
     }
-- 
1.7.5.4


--------------040604000309060600050603--


More information about the LibreOffice mailing list