diff options
-rw-r--r-- | lingucomponent/source/lingutil/lingutil.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index f8ae521c2919..b6db0b9fca66 100644 --- a/lingucomponent/source/lingutil/lingutil.cxx +++ b/lingucomponent/source/lingutil/lingutil.cxx @@ -198,7 +198,7 @@ void MergeNewStyleDicsAndOldStyleDics( sal_Int32 nLocaleNames = aLocaleNames.getLength(); for (sal_Int32 k = 0; k < nLocaleNames; ++k) { - LanguageType nLang = LanguageTag::convertToLanguageType( aLocaleNames[k] ); + LanguageType nLang = LanguageTag::convertToLanguageTypeWithFallback( aLocaleNames[k] ); aNewStyleLanguages.insert( nLang ); } } @@ -214,7 +214,7 @@ void MergeNewStyleDicsAndOldStyleDics( DBG_ASSERT( nOldStyleDics, "old style dictionary with more then one language found!"); if (nOldStyleDics > 0) { - LanguageType nLang = LanguageTag::convertToLanguageType( aIt2->aLocaleNames[0] ); + LanguageType nLang = LanguageTag::convertToLanguageTypeWithFallback( aIt2->aLocaleNames[0] ); if (nLang == LANGUAGE_DONTKNOW || linguistic::LinguIsUnspecified( nLang)) { |