From: Jürgen Spitzmüller Date: Fri, 30 Apr 2010 09:52:00 +0000 (+0000) Subject: * GuiSpellchecker.cpp: fix bug 6676. X-Git-Tag: 2.0.0~3314 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4a4d7a57f263616d67033b5f53698911544fd15b;p=features.git * GuiSpellchecker.cpp: fix bug 6676. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34345 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiSpellchecker.cpp b/src/frontends/qt4/GuiSpellchecker.cpp index abe152509a..8d401d1214 100644 --- a/src/frontends/qt4/GuiSpellchecker.cpp +++ b/src/frontends/qt4/GuiSpellchecker.cpp @@ -171,8 +171,9 @@ void GuiSpellchecker::on_languageCO_activated(int index) void GuiSpellchecker::on_ignoreAllPB_clicked() { - /// replace all occurances of word - theSpellChecker()->accept(d->word_); + /// replace all occurences of word + if (d->word_.lang() && !d->word_.word().empty()) + theSpellChecker()->accept(d->word_); check(); }