* GuiSpellchecker.cpp: fix bug 6676.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34345 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-04-30 09:52:00 +00:00
parent a03faee92d
commit 4a4d7a57f2

View 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();
}