From 184d4cd087b648998bf5ca83d77f5362ec734cfe Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 6 Aug 2002 23:16:27 +0000 Subject: [PATCH] fix triple-select.lyx crash git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4884 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/controllers/ChangeLog | 5 +++++ src/frontends/controllers/ControlSpellchecker.C | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/frontends/controllers/ChangeLog b/src/frontends/controllers/ChangeLog index 58bf5ef657..0e8f029cb8 100644 --- a/src/frontends/controllers/ChangeLog +++ b/src/frontends/controllers/ChangeLog @@ -1,3 +1,8 @@ +2002-08-07 John Levon + + * ControlSpellchecker.C: fix crash when spellchecker doesn't + initialise + 2002-08-06 John Levon * ControlSpellchecker.C: diff --git a/src/frontends/controllers/ControlSpellchecker.C b/src/frontends/controllers/ControlSpellchecker.C index 0a341353b3..78191572a2 100644 --- a/src/frontends/controllers/ControlSpellchecker.C +++ b/src/frontends/controllers/ControlSpellchecker.C @@ -71,6 +71,8 @@ void ControlSpellchecker::setParams() } if (!speller_->error().empty()) { + emergency_exit_ = true; + Alert::alert("The spellchecker has failed", speller_->error()); clearParams(); return; } @@ -184,7 +186,8 @@ void ControlSpellchecker::stop() void ControlSpellchecker::clearParams() { - if (!speller_) return; + if (!speller_) + return; if (speller_->alive()) { speller_->close();