]> git.lyx.org Git - features.git/commitdiff
Fix MSVC crash.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 22 Jun 2009 20:59:56 +0000 (20:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 22 Jun 2009 20:59:56 +0000 (20:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30226 a592a061-630c-0410-9148-cb99ea01b6c8

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, /**/);