]> git.lyx.org Git - lyx.git/blobdiff - src/AppleSpellChecker.cpp
Fix bug #12772
[lyx.git] / src / AppleSpellChecker.cpp
index 4f22a5e09db609425ae0ce84f4d98ede0ea4e9ea..0a82d38b3228f04ee27ad3e45bbd889e6947690d 100644 (file)
@@ -79,7 +79,7 @@ string AppleSpellChecker::Private::toString(SpellCheckResult status)
 
 
 SpellChecker::Result AppleSpellChecker::check(WordLangTuple const & word,
-        std::vector<WordLangTuple> docdict)
+        std::vector<WordLangTuple> const & docdict)
 {
        if (!hasDictionary(word.lang()))
                return NO_DICTIONARY;
@@ -92,7 +92,7 @@ SpellChecker::Result AppleSpellChecker::check(WordLangTuple const & word,
                if (it->lang()->code() != word.lang()->code())
                        continue;
                if (it->word() == word.word())
-                       return LEARNED_WORD;
+                       return DOCUMENT_LEARNED_WORD;
        }
 
        SpellCheckResult result =