more tdf#76964 fall back to primary language via getLanguage
Change-Id: I7718ff6f93f704e37e9a046cb07c497b2d533a2a
This commit is contained in:
@@ -1796,6 +1796,7 @@ bool SvxAutoCorrect::FindInWrdSttExceptList( LanguageType eLang,
|
||||
}
|
||||
|
||||
// otherwise for example EN
|
||||
aLanguageTag.reset(aLanguageTag.getLanguage());
|
||||
LanguageType nTmpKey2 = aLanguageTag.getLanguageType(false);
|
||||
if (nTmpKey2 != eLang && nTmpKey2 != LANGUAGE_UNDETERMINED &&
|
||||
(m_pLangTable->find(aLanguageTag) != m_pLangTable->end() ||
|
||||
@@ -1882,6 +1883,7 @@ bool SvxAutoCorrect::FindInCplSttExceptList(LanguageType eLang,
|
||||
}
|
||||
|
||||
// otherwise for example EN
|
||||
aLanguageTag.reset(aLanguageTag.getLanguage());
|
||||
LanguageType nTmpKey2 = aLanguageTag.getLanguageType(false);
|
||||
if (nTmpKey2 != eLang && nTmpKey2 != LANGUAGE_UNDETERMINED &&
|
||||
(m_pLangTable->find(aLanguageTag) != m_pLangTable->end() ||
|
||||
|
Reference in New Issue
Block a user