[Libreoffice-commits] core.git: editeng/source

Caolán McNamara caolanm at redhat.com
Fri Oct 23 12:28:16 PDT 2015


 editeng/source/misc/svxacorr.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 97893e56e61a466e56d12ee46d11f6e4c32a737b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 23 20:26:23 2015 +0100

    more tdf#76964 fall back to primary language via getLanguage
    
    Change-Id: I7718ff6f93f704e37e9a046cb07c497b2d533a2a

diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 93c56bb..e1879ee 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -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() ||


More information about the Libreoffice-commits mailing list