Fix MSVC crash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30226 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2009-06-22 20:59:56 +00:00
parent 14864ab16a
commit d9ce39844f

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