From d9ce39844f78b955b21b71a49bbcdb168879f54f Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 22 Jun 2009 20:59:56 +0000 Subject: [PATCH] Fix MSVC crash. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30226 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ASpell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ASpell.cpp b/src/ASpell.cpp index c99ff0498c..b4a8bdb173 100644 --- a/src/ASpell.cpp +++ b/src/ASpell.cpp @@ -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, /**/); -- 2.39.2