From 5dc77bb072f9f6e4a607c8d0158e9ec4326436f9 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Thu, 27 Sep 2001 13:10:28 +0000 Subject: [PATCH] Fix silly little bug that resulted in only being able to use the spell checker once. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2811 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/controllers/ChangeLog | 5 +++++ src/frontends/controllers/ControlSpellchecker.C | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/frontends/controllers/ChangeLog b/src/frontends/controllers/ChangeLog index 3eccaaefab..fc508b77b4 100644 --- a/src/frontends/controllers/ChangeLog +++ b/src/frontends/controllers/ChangeLog @@ -1,3 +1,8 @@ +2001-09-27 Angus Leeming + + * ControlSpellchecker.C (clearParams): place emergency_exit_ in + the correct place. Can now check spelling more than once! + 2001-09-27 Angus Leeming * ControlSplash.[Ch]: removed. diff --git a/src/frontends/controllers/ControlSpellchecker.C b/src/frontends/controllers/ControlSpellchecker.C index aab4862b9b..fa4f6786c9 100644 --- a/src/frontends/controllers/ControlSpellchecker.C +++ b/src/frontends/controllers/ControlSpellchecker.C @@ -219,6 +219,9 @@ void ControlSpellchecker::clearParams() speller_->cleanUp(); message_ = _("The spell checker has died for some reason.\n" "Maybe it has been killed."); + + // make sure that the dialog is not launched + emergency_exit_ = true; } delete speller_; @@ -239,9 +242,6 @@ void ControlSpellchecker::clearParams() stop_ = false; result_ = SpellBase::ISP_UNKNOWN; speller_ = 0; - - // make sure that the dialog is not launched - emergency_exit_ = true; }