- Spellers::iterator it = d->spellers_.find(word.lang()->code());
- if (it != d->spellers_.end())
- it->second.speller->add(to_utf8(word.word()));
+ enchant::Dict * m = d->speller(word.lang()->code());
+ if (m) {
+ m->add(to_utf8(word.word()));
+ advanceChangeNumber();
+ }
+}
+
+
+void EnchantChecker::remove(WordLangTuple const & word)
+{
+ enchant::Dict * m = d->speller(word.lang()->code());
+ if (m) {
+ m->remove(to_utf8(word.word()));
+ advanceChangeNumber();
+ }