mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
#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:
parent
06dab7972b
commit
20f61c7eb7
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user