X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FEnchantChecker.cpp;h=cbccc34aae4ec911914034469fb9700decf9d74a;hb=c57dc64116d8d1beb87a6b76a54cfcf82314259a;hp=8cc37812b4c7e558c57331bde91b63c98611b11b;hpb=dec437fbac739fb4d8e78842b9f9286bbaaf0971;p=lyx.git diff --git a/src/EnchantChecker.cpp b/src/EnchantChecker.cpp index 8cc37812b4..cbccc34aae 100644 --- a/src/EnchantChecker.cpp +++ b/src/EnchantChecker.cpp @@ -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)