summaryrefslogtreecommitdiff
path: root/unotools/source/config/fontcfg.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-21 18:34:53 +0100
committerEike Rathke <erack@redhat.com>2012-11-21 18:35:53 +0100
commitb8a467b70756b83c8aeb77f385ea1e368350d370 (patch)
treeeb0c2a0f560899b634ef8598f9022f4af24f1427 /unotools/source/config/fontcfg.cxx
parentbe677b568690415ff90e7937d7269d3b41b39c16 (diff)
obtain LanguageTag from SvtSysLocale
Change-Id: Iaee25f1d92349704eaae45e6582d31dfa718ddcb
Diffstat (limited to 'unotools/source/config/fontcfg.cxx')
-rw-r--r--unotools/source/config/fontcfg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index 314fed44faa3..ce1f465f2a6c 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -252,7 +252,7 @@ OUString DefaultFontConfiguration::getUserInterfaceFont( const Locale& rLocale )
{
Locale aLocale = rLocale;
if( aLocale.Language.isEmpty() )
- aLocale = SvtSysLocale().GetUILocale();
+ aLocale = SvtSysLocale().GetUILanguageTag().getLocale();
OUString aUIFont = getDefaultFont( aLocale, DEFAULTFONT_UI_SANS );
@@ -1160,7 +1160,7 @@ const FontNameAttr* FontSubstConfiguration::getSubstInfo( const String& rFontNam
aLocale.Variant = rLocale.Variant.toAsciiUpperCase();
if( aLocale.Language.isEmpty() )
- aLocale = SvtSysLocale().GetUILocale();
+ aLocale = SvtSysLocale().GetUILanguageTag().getLocale();
while( !aLocale.Language.isEmpty() )
{