summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linguistic/source/misc.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index 160af548b84f..353d2decc5af 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -72,10 +72,8 @@ LocaleDataWrapper & GetLocaleDataWrapper( sal_Int16 nLang )
{
static LocaleDataWrapper aLclDtaWrp( SvtSysLocale().GetLanguageTag() );
- const LanguageTag &rLcl = aLclDtaWrp.getLoadedLanguageTag();
- LanguageTag aLcl( nLang );
- if (aLcl != rLcl)
- aLclDtaWrp.setLanguageTag( aLcl );
+ if (nLang != aLclDtaWrp.getLoadedLanguageTag().getLanguageType())
+ aLclDtaWrp.setLanguageTag( LanguageTag( nLang ) );
return aLclDtaWrp;
}