Kaydet (Commit) 52d591ff authored tarafından Eike Rathke's avatar Eike Rathke

use SvtSysLocaleOptions::GetRealLanguageTag(), not GetLocaleConfigString()

Testing for GetLocaleConfigString() starting with a language code could never
have worked if configured was "Default - ..." in which case the config string
is an empty string.

Change-Id: I3a68a168a0f8e53c8c389fc243e40053f5d45e1f
üst f80d618c
...@@ -1088,8 +1088,8 @@ void SwInsertConfig::Load() ...@@ -1088,8 +1088,8 @@ void SwInsertConfig::Load()
{ {
//#i61007# initialize caption order, right now only HUNGARIAN seems to need a different order //#i61007# initialize caption order, right now only HUNGARIAN seems to need a different order
SvtSysLocaleOptions aSysLocaleOptions; SvtSysLocaleOptions aSysLocaleOptions;
OUString sLang = aSysLocaleOptions.GetLocaleConfigString(); const LanguageTag& rLang = aSysLocaleOptions.GetRealLanguageTag();
bCaptionOrderNumberingFirst = sLang.startsWith( "hu" ); bCaptionOrderNumberingFirst = (rLang.getLanguage() == "hu");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment