]> git.lyx.org Git - lyx.git/blobdiff - src/EnchantChecker.cpp
GuiTabular.cpp: don't hardcode decimal align combobox item
[lyx.git] / src / EnchantChecker.cpp
index 179e8365a584a6adc6ccab230d30445ae9b126d7..61127108a44765e72a9f22ebe9ddb818844467b4 100644 (file)
@@ -112,7 +112,10 @@ SpellChecker::Result EnchantChecker::check(WordLangTuple const & word)
 {
        enchant::Dict * m = d->speller(word.lang()->code());
 
-       if (!m || word.word().empty())
+       if (!m)
+               return NO_DICTIONARY;
+
+       if (word.word().empty())
                return WORD_OK;
 
        string utf8word = to_utf8(word.word());