]> git.lyx.org Git - lyx.git/blobdiff - src/HunspellChecker.cpp
typo
[lyx.git] / src / HunspellChecker.cpp
index f3b8c25edb83bcd53589bb2aef2680873c941e1d..83bd586dcfc29dd8eb03288a5e44bf584fb532fd 100644 (file)
@@ -233,6 +233,12 @@ SpellChecker::Result HunspellChecker::check(WordLangTuple const & wl)
 }
 
 
+void HunspellChecker::advanceChangeNumber()
+{
+       nextChangeNumber();
+}
+
+
 void HunspellChecker::insert(WordLangTuple const & wl)
 {
        string const word_to_check = to_utf8(wl.word());
@@ -240,12 +246,14 @@ void HunspellChecker::insert(WordLangTuple const & wl)
        if (!h)
                return;
        h->add(word_to_check.c_str());
+       advanceChangeNumber();
 }
 
 
 void HunspellChecker::accept(WordLangTuple const & wl)
 {
        d->ignored_.push_back(wl);
+       advanceChangeNumber();
 }