+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
* 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>
* 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>
}
// 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;