* GuiSpellchecker:

- prevent invalid pointer access (spellchecker crash reported by Abdel).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27770 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-12-05 10:20:26 +00:00
parent 1a24671e1c
commit 287de0508d

View File

@ -92,7 +92,8 @@ void GuiSpellchecker::suggestionChanged(QListWidgetItem * item)
void GuiSpellchecker::replaceChanged(const QString & str) void GuiSpellchecker::replaceChanged(const QString & str)
{ {
if (suggestionsLW->currentItem()->text() == str) if (suggestionsLW->currentItem()
&& suggestionsLW->currentItem()->text() == str)
return; return;
for (int i = 0; i != suggestionsLW->count(); ++i) { for (int i = 0; i != suggestionsLW->count(); ++i) {