* GuiSpellchecker:

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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27771 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-12-05 10:22:38 +00:00
parent aa0c7c58b4
commit b3a336fbdf
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -105,6 +105,9 @@ What's new
- Fix crash on display of message string with utf8 encoding
(bug 5389 related).
- Fix crash when trying to access the replacements combo box in the spell
checker dialog.
- Fix the registration of mimetypes, which cures a crash when using
the clipboard and launching other applications on Windows (bug 5472).