mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
* 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:
parent
1a24671e1c
commit
287de0508d
@ -92,7 +92,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user