summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-26 22:58:34 +0200
committerEike Rathke <erack@redhat.com>2013-09-26 23:00:38 +0200
commitecefa40c081a0b6677e946603d553d9382f9b9ca (patch)
tree7ad48f9f42ad2d5661548d9b5d4dae968e7e69e6 /unotools
parent2eb36dc4b846ab5886ae71fd2978b56b2a2d1d08 (diff)
use makeFallback() in MakeRalLocale()/MakeRealUILocale()
The old MsLangId::convert...() methods did implicitly fall back to a known locale, this behavior is explicitly needed here to select a proper completely known locale. Change-Id: I350989f3af679890ddb0de964c2d107420331160
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/syslocaleoptions.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx
index 7e136113257b..f266b4d637da 100644
--- a/unotools/source/config/syslocaleoptions.cxx
+++ b/unotools/source/config/syslocaleoptions.cxx
@@ -266,11 +266,11 @@ void SvtSysLocaleOptions_Impl::MakeRealLocale()
if (m_aLocaleString.isEmpty())
{
LanguageType nLang = MsLangId::getSystemLanguage();
- m_aRealLocale.reset( nLang);
+ m_aRealLocale.reset( nLang).makeFallback();
}
else
{
- m_aRealLocale.reset( m_aLocaleString);
+ m_aRealLocale.reset( m_aLocaleString).makeFallback();
}
}
@@ -279,11 +279,11 @@ void SvtSysLocaleOptions_Impl::MakeRealUILocale()
if (m_aUILocaleString.isEmpty())
{
LanguageType nLang = MsLangId::getSystemUILanguage();
- m_aRealUILocale.reset( nLang);
+ m_aRealUILocale.reset( nLang).makeFallback();
}
else
{
- m_aRealUILocale.reset( m_aUILocaleString);
+ m_aRealUILocale.reset( m_aUILocaleString).makeFallback();
}
}