]> git.lyx.org Git - features.git/commitdiff
(Rob Lahaye): fix label of progress slider when spellchecking.
authorAngus Leeming <leeming@lyx.org>
Mon, 4 Nov 2002 14:51:30 +0000 (14:51 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 4 Nov 2002 14:51:30 +0000 (14:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5579 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormSpellchecker.C

index ae6a09912a406e98b180f0e5480e53b7f6ddaf21..15caaf19c549ebc90f065aea7669f7a1b54bd804 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-04  Rob Lahaye  <lahaye@snu.ac.kr>
+
+       * FormSpellchecker.C (input): fix label of spellchecker progress bar.
+
 2002-11-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * lyx_gui.C (hexname): STRCONV
@@ -9,7 +13,7 @@
        * FormMathsDelim.C (apply): STRCONV
 
        * lyx_gui.C (start): adjust signature
-       (start): exchange magic integeres for defined values.
+       (start): exchange magic integers for defined values.
 
 2002-10-31  Rob Lahaye  <lahaye@snu.ac.kr>
 
@@ -22,7 +26,7 @@
        * FormParagraph.[Ch]:
        * forms/form_paragraph.fd: a large-scale reorganisation and clean-up
        of the code to make it more transparent. Use RadioButtonGroup and
-       ChaekedGlueLength for the same reason. Add tooltips.
+       CheckedGlueLength for the same reason. Add tooltips.
 
 2002-10-28  Angus Leeming  <leeming@lyx.org>
 
index fccb0f10914a7c6ba4eef5b7f464e2f7db8adc92..6117f9840485cbb700aa6df6452745c7e921bda8 100644 (file)
@@ -161,15 +161,14 @@ ButtonPolicy::SMInput FormSpellchecker::input(FL_OBJECT * ob, long ob_value)
        }
 
        // update slider with word count and progress
-       double const wordcount = controller().getCount();
        int const progress = controller().getProgress();
-       if (wordcount > 0.0 && progress > 0) {
+       if (progress > 0) {
+               double const wordcount = controller().getCount();
                double const total = 100.0 * wordcount / progress;
-
+               string const label = tostr(progress) + " %";
                fl_set_slider_bounds(dialog_->slider_progress, 0.0, total);
                fl_set_slider_value(dialog_->slider_progress, wordcount);
-               fl_set_object_label(dialog_->slider_progress,
-                                       (tostr(progress) + " %").c_str());
+               fl_set_object_label(dialog_->slider_progress, label.c_str());
        }
 
        return ButtonPolicy::SMI_VALID;