The "Maths spacing" dialog is broken ("Apply" does not work without former
user change in the dialog)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2709
a592a061-630c-0410-9148-
cb99ea01b6c8
2001-09-07 Angus Leeming <a.leeming@ic.ac.uk>
+ * FormMathsSpace.C: Fix bug: the "Maths spacing" dialog is broken
+ ("Apply" does not work without former user change in the dialog).
+
* FormPreferences.C (build): Fix bug: if you start LyX and open the
Preferences dialog, "Apply" is activated even though no change has been
made so far.
dialog_.reset(build_maths_space());
fl_set_button(dialog_->radio_thin, 1);
+ space_ = 1;
bc().setOK(dialog_->button_ok);
bc().setApply(dialog_->button_apply);
void FormMathsSpace::apply()
{
- if (space_ > 0)
+ if (space_ >= 0)
parent_.insertSymbol(latex_mathspace[space_]);
}