https://bugs.documentfoundation.org/show_bug.cgi?id=141773
--- Comment #4 from Julien Nabet <[email protected]> ---
With this patch this one is fixed without breaking the other:
diff --git a/editeng/source/misc/svxacorr.cxx
b/editeng/source/misc/svxacorr.cxx
index ce1f788f593c..21c95bc6bc8d 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1944,6 +1944,20 @@ const SvxAutocorrWord*
SvxAutoCorrect::SearchWordsInList(
rLang = aLanguageTag;
return pRet;
}
+ }
+
+ LanguageTag aLanguageTagUnd(LANGUAGE_UNDETERMINED);
+ if (m_aLangTable.find(aLanguageTagUnd) != m_aLangTable.end())
+ {
+ //the language is available - so bring it on
+ std::unique_ptr<SvxAutoCorrectLanguageLists> const& pList =
m_aLangTable.find(aLanguageTagUnd)->second;
+ pRet = lcl_SearchWordsInList( pList.get(), rTxt, rStt, nEndPos );
+ if( pRet )
+ {
+ // TODO useful?
+ // rLang = aLanguageTag;
+ return pRet;
+ }
else
return nullptr;
}
Now, I'm not sure if it's the right way.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs