]> git.lyx.org Git - lyx.git/blobdiff - src/AspellChecker.cpp
Partially revert r34995, which broke math output. Not sure why yet....
[lyx.git] / src / AspellChecker.cpp
index 097ec6916595bcbe8c732af56f3046c55ca253c4..36e8e04c8f23375ba608b61261a4e16a4328bd70 100644 (file)
@@ -272,8 +272,8 @@ SpellChecker::Result AspellChecker::check(WordLangTuple const & word)
                // MSVC compiled Aspell doesn't like it.
                return 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;