]> git.lyx.org Git - features.git/blobdiff - src/EnchantChecker.cpp
Handle empty index subentries (#7820)
[features.git] / src / EnchantChecker.cpp
index 8eaea83753681dc677fba1e57138448596eb2fdf..5b42f33fde7e5f575a418d32e18c9ff476f63ffa 100644 (file)
@@ -139,7 +139,7 @@ SpellChecker::Result EnchantChecker::check(WordLangTuple const & word,
                if (it->lang()->code() != word.lang()->code())
                        continue;
                if (it->word() == word.word())
-                       return LEARNED_WORD;
+                       return DOCUMENT_LEARNED_WORD;
        }
 
        return UNKNOWN_WORD;