namespace lyx {
-ASpell::ASpell(BufferParams const &, string const & lang)
- : els(0), spell_error_object(0)
+ASpell::ASpell(): els(0), spell_error_object(0)
{
- addSpeller(lang);
}
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, /**/);