resolveSystemLanguageByScriptType in case not set

Change-Id: I45582ba27579413140d536fdf0106edbef8dc4a7
This commit is contained in:
Eike Rathke
2013-04-12 20:39:07 +02:00
parent f3e70f0f9c
commit a324ad1ab6

View File

@@ -118,7 +118,8 @@ LanguageType EditView::CheckLanguage(
SvtLinguOptions aLinguOpt;
SvtLinguConfig().GetOptions( aLinguOpt );
// The default document language from "Tools/Options - Language Settings - Languages: Western"
aLangList[0] = aLinguOpt.nDefaultLanguage;
aLangList[0] = MsLangId::resolveSystemLanguageByScriptType( aLinguOpt.nDefaultLanguage,
::com::sun::star::i18n::ScriptType::LATIN);
// The one from "Tools/Options - Language Settings - Languages: User interface"
aLangList[1] = rSettings.GetUILanguageTag().getLanguageType();
// The one from "Tools/Options - Language Settings - Languages: Locale setting"