]> git.lyx.org Git - lyx.git/blobdiff - src/HunspellChecker.cpp
Implement LFUN_SPELLING_REMOVE (patch from switt)
[lyx.git] / src / HunspellChecker.cpp
index f5b9d0c61a88158662e9af684042eca3b9b59ceb..f3b8c25edb83bcd53589bb2aef2680873c941e1d 100644 (file)
@@ -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?