#7884 improved return code of EnchantChecker::check() when dictionaries are missing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40598 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2012-01-11 17:03:49 +00:00
parent 06dab7972b
commit 20f61c7eb7

View File

@ -112,7 +112,10 @@ SpellChecker::Result EnchantChecker::check(WordLangTuple const & word)
{
enchant::Dict * m = d->speller(word.lang()->code());
if (!m || word.word().empty())
if (!m)
return NO_DICTIONARY;
if (word.word().empty())
return WORD_OK;
string utf8word = to_utf8(word.word());