fix triple-select.lyx crash

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4884 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-08-06 23:16:27 +00:00
parent 960db78b52
commit 184d4cd087
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-08-07 John Levon <levon@movementarian.org>
* ControlSpellchecker.C: fix crash when spellchecker doesn't
initialise
2002-08-06 John Levon <levon@movementarian.org> 2002-08-06 John Levon <levon@movementarian.org>
* ControlSpellchecker.C: * ControlSpellchecker.C:

View File

@ -71,6 +71,8 @@ void ControlSpellchecker::setParams()
} }
if (!speller_->error().empty()) { if (!speller_->error().empty()) {
emergency_exit_ = true;
Alert::alert("The spellchecker has failed", speller_->error());
clearParams(); clearParams();
return; return;
} }
@ -184,7 +186,8 @@ void ControlSpellchecker::stop()
void ControlSpellchecker::clearParams() void ControlSpellchecker::clearParams()
{ {
if (!speller_) return; if (!speller_)
return;
if (speller_->alive()) { if (speller_->alive()) {
speller_->close(); speller_->close();