more tdf#76964 fall back to primary language via getLanguage

Change-Id: I7718ff6f93f704e37e9a046cb07c497b2d533a2a
This commit is contained in:
Caolán McNamara
2015-10-23 20:26:23 +01:00
parent 526f792d9a
commit 97893e56e6

View File

@@ -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() ||