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

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
üst 2eb36dc4
...@@ -266,11 +266,11 @@ void SvtSysLocaleOptions_Impl::MakeRealLocale() ...@@ -266,11 +266,11 @@ void SvtSysLocaleOptions_Impl::MakeRealLocale()
if (m_aLocaleString.isEmpty()) if (m_aLocaleString.isEmpty())
{ {
LanguageType nLang = MsLangId::getSystemLanguage(); LanguageType nLang = MsLangId::getSystemLanguage();
m_aRealLocale.reset( nLang); m_aRealLocale.reset( nLang).makeFallback();
} }
else else
{ {
m_aRealLocale.reset( m_aLocaleString); m_aRealLocale.reset( m_aLocaleString).makeFallback();
} }
} }
...@@ -279,11 +279,11 @@ void SvtSysLocaleOptions_Impl::MakeRealUILocale() ...@@ -279,11 +279,11 @@ void SvtSysLocaleOptions_Impl::MakeRealUILocale()
if (m_aUILocaleString.isEmpty()) if (m_aUILocaleString.isEmpty())
{ {
LanguageType nLang = MsLangId::getSystemUILanguage(); LanguageType nLang = MsLangId::getSystemUILanguage();
m_aRealUILocale.reset( nLang); m_aRealUILocale.reset( nLang).makeFallback();
} }
else else
{ {
m_aRealUILocale.reset( m_aUILocaleString); m_aRealUILocale.reset( m_aUILocaleString).makeFallback();
} }
} }
......
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