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

Caolán McNamara caolanm at redhat.com
Thu Dec 15 09:26:08 UTC 2016


 lingucomponent/source/spellcheck/spell/sspellimp.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 7f9a389b45e2452d859e17cf51acd27dc7355af6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 15 09:25:22 2016 +0000

    if building against system hunspell < 1.5.4 > 1.4.0
    
    Change-Id: I9ba1b9c3c0e3efb00538b2f3ed4fcffc29f9e931

diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 173426f..5a1abd7 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -270,6 +270,10 @@ sal_Bool SAL_CALL SpellChecker::hasLocale(const Locale& rLocale)
     return bRes;
 }
 
+#ifndef MAXWORDLEN
+#   define MAXWORDLEN 176
+#endif
+
 sal_Int16 SpellChecker::GetSpellFailure(const OUString &rWord, const Locale &rLocale)
 {
     if (rWord.getLength() > MAXWORDLEN)


More information about the Libreoffice-commits mailing list