]> git.lyx.org Git - features.git/commitdiff
* GuiSpellchecker.cpp: fix bug 6676.
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 30 Apr 2010 09:52:00 +0000 (09:52 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 30 Apr 2010 09:52:00 +0000 (09:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34345 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiSpellchecker.cpp

index abe152509ab028469143b7174bc602f88eff0d36..8d401d12147306ae64c6b45a9a43daafddf01e69 100644 (file)
@@ -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();
 }