summaryrefslogtreecommitdiff
path: root/sw/source/uibase/config/modcfg.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-12-02 19:45:28 +0100
committerEike Rathke <erack@redhat.com>2016-12-02 20:36:24 +0100
commit52d591ffde5e449332f9249de83561184650e408 (patch)
tree7c3f3aa30df4d88e6409c1ffc4186f81839c8f30 /sw/source/uibase/config/modcfg.cxx
parentf80d618cedafef73eb27fd994a1b5356ea693585 (diff)
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
Diffstat (limited to 'sw/source/uibase/config/modcfg.cxx')
-rw-r--r--sw/source/uibase/config/modcfg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/config/modcfg.cxx b/sw/source/uibase/config/modcfg.cxx
index eb3be3341226..1eb1cfb16617 100644
--- a/sw/source/uibase/config/modcfg.cxx
+++ b/sw/source/uibase/config/modcfg.cxx
@@ -1088,8 +1088,8 @@ void SwInsertConfig::Load()
{
//#i61007# initialize caption order, right now only HUNGARIAN seems to need a different order
SvtSysLocaleOptions aSysLocaleOptions;
- OUString sLang = aSysLocaleOptions.GetLocaleConfigString();
- bCaptionOrderNumberingFirst = sLang.startsWith( "hu" );
+ const LanguageTag& rLang = aSysLocaleOptions.GetRealLanguageTag();
+ bCaptionOrderNumberingFirst = (rLang.getLanguage() == "hu");
}
}