X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FHunspellChecker.cpp;h=f3b8c25edb83bcd53589bb2aef2680873c941e1d;hb=e4f2484cb5899da6d98e0be6db465ca011989e04;hp=f5b9d0c61a88158662e9af684042eca3b9b59ceb;hpb=f5e2d7879276d25b1de2cd493db1712bf9d96b0e;p=lyx.git diff --git a/src/HunspellChecker.cpp b/src/HunspellChecker.cpp index f5b9d0c61a..f3b8c25edb 100644 --- a/src/HunspellChecker.cpp +++ b/src/HunspellChecker.cpp @@ -207,18 +207,18 @@ HunspellChecker::~HunspellChecker() SpellChecker::Result HunspellChecker::check(WordLangTuple const & wl) { if (d->isIgnored(wl)) - return OK; + return WORD_OK; Hunspell * h = d->speller(wl.lang()->code()); if (!h) - return OK; + return WORD_OK; int info; string const encoding = h->get_dic_encoding(); string const word_to_check = to_iconv_encoding(wl.word(), encoding); if (h->spell(word_to_check.c_str(), &info)) - return OK; + return WORD_OK; if (info & SPELL_COMPOUND) { // FIXME: What to do with that?