]> git.lyx.org Git - lyx.git/blobdiff - src/EnchantChecker.cpp
Cocoa based Qt-4.6 needs to paint every character separately to match metrics computa...
[lyx.git] / src / EnchantChecker.cpp
index 8cc37812b4c7e558c57331bde91b63c98611b11b..cbccc34aae4ec911914034469fb9700decf9d74a 100644 (file)
@@ -138,6 +138,16 @@ void EnchantChecker::insert(WordLangTuple const & word)
                advanceChangeNumber();
        }
 }
+       
+       
+void EnchantChecker::remove(WordLangTuple const & word)
+{
+       Spellers::iterator it = d->spellers_.find(word.lang()->code());
+       if (it != d->spellers_.end()) {
+               it->second.speller->remove(to_utf8(word.word()));
+               advanceChangeNumber();
+       }
+}
 
 
 void EnchantChecker::accept(WordLangTuple const & word)