]> git.lyx.org Git - lyx.git/blobdiff - src/AppleSpellChecker.cpp
Compile fix.
[lyx.git] / src / AppleSpellChecker.cpp
index 71f7e1e25be3334d7c04322d6b849668d36bdb9c..f763471f5f87195a394dde5e944375654d45eaf3 100644 (file)
@@ -88,12 +88,19 @@ SpellChecker::Result AppleSpellChecker::check(WordLangTuple const & word)
 }
 
 
+void AppleSpellChecker::advanceChangeNumber()
+{
+       nextChangeNumber();
+}
+
+
 // add to personal dictionary
 void AppleSpellChecker::insert(WordLangTuple const & word)
 {
        string const word_str = to_utf8(word.word());
        AppleSpeller_learn(d->speller, word_str.c_str());
        LYXERR(Debug::GUI, "learn word: \"" << word.word() << "\"") ;
+       advanceChangeNumber();
 }
 
 
@@ -103,6 +110,7 @@ void AppleSpellChecker::remove(WordLangTuple const & word)
        string const word_str = to_utf8(word.word());
        AppleSpeller_unlearn(d->speller, word_str.c_str());
        LYXERR(Debug::GUI, "unlearn word: \"" << word.word() << "\"") ;
+       advanceChangeNumber();
 }
 
 
@@ -111,6 +119,7 @@ void AppleSpellChecker::accept(WordLangTuple const & word)
 {
        string const word_str = to_utf8(word.word());
        AppleSpeller_ignore(d->speller, word_str.c_str());
+       advanceChangeNumber();
 }