]> git.lyx.org Git - lyx.git/blobdiff - src/ASpell.cpp
* GuiDocument.cpp:
[lyx.git] / src / ASpell.cpp
index c99ff0498c6eef8117285c5eea6a5b318b390c0f..b4a8bdb173f5536313c7f82332646a9846de0229 100644 (file)
@@ -101,6 +101,10 @@ ASpell::Result ASpell::check(WordLangTuple const & word)
 
        AspellSpeller * m = it->second.speller;
 
+       if (word.word().empty())
+               // MSVC compiled Aspell doesn't like it.
+               return OK;
+
        int const word_ok = aspell_speller_check(m, to_utf8(word.word()).c_str(), -1);
        LASSERT(word_ok != -1, /**/);