]> git.lyx.org Git - lyx.git/blobdiff - src/EnchantChecker.cpp
InsetLine.cpp: remove unused include
[lyx.git] / src / EnchantChecker.cpp
index 793bc16fb95da8499743b6c8bc4fc26645ff3ee7..4e9494ad2a9964d49735fc87952ec1112b2a0482 100644 (file)
@@ -112,7 +112,7 @@ SpellChecker::Result EnchantChecker::check(WordLangTuple const & word)
 {
        enchant::Dict * m = d->speller(word.lang()->code());
 
-       if (!m)
+       if (!m || word.word().empty())
                return WORD_OK;
 
        string utf8word = to_utf8(word.word());