]> git.lyx.org Git - lyx.git/blobdiff - src/AspellChecker.cpp
Workaround for #6865: smarter FontList::setMisspelled implementation
[lyx.git] / src / AspellChecker.cpp
index 097ec6916595bcbe8c732af56f3046c55ca253c4..06cc6bf49a123c40a0ea7d8c5904d9536f711ead 100644 (file)
@@ -266,17 +266,17 @@ SpellChecker::Result AspellChecker::check(WordLangTuple const & word)
                d->speller(word.lang()->code(), word.lang()->variety());
 
        if (!m)
-               return OK;
+               return WORD_OK;
 
        if (word.word().empty())
                // MSVC compiled Aspell doesn't like it.
-               return OK;
+               return WORD_OK;
 
-       const char * word_str = to_utf8(word.word()).c_str();
-       int const word_ok = aspell_speller_check(m, word_str, -1);
+       string const word_str = to_utf8(word.word());
+       int const word_ok = aspell_speller_check(m, word_str.c_str(), -1);
        LASSERT(word_ok != -1, /**/);
 
-       return (word_ok) ? OK : UNKNOWN_WORD;
+       return (word_ok) ? WORD_OK : UNKNOWN_WORD;
 }