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
This commit is contained in:
Angus Leeming 2001-09-07 16:12:20 +00:00
parent 572b58dfad
commit dfea8a9dad
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,9 @@
2001-09-07 Angus Leeming <a.leeming@ic.ac.uk> 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 * FormPreferences.C (build): Fix bug: if you start LyX and open the
Preferences dialog, "Apply" is activated even though no change has been Preferences dialog, "Apply" is activated even though no change has been
made so far. made so far.

View File

@ -40,6 +40,7 @@ void FormMathsSpace::build()
dialog_.reset(build_maths_space()); dialog_.reset(build_maths_space());
fl_set_button(dialog_->radio_thin, 1); fl_set_button(dialog_->radio_thin, 1);
space_ = 1;
bc().setOK(dialog_->button_ok); bc().setOK(dialog_->button_ok);
bc().setApply(dialog_->button_apply); bc().setApply(dialog_->button_apply);
@ -56,7 +57,7 @@ void FormMathsSpace::build()
void FormMathsSpace::apply() void FormMathsSpace::apply()
{ {
if (space_ > 0) if (space_ >= 0)
parent_.insertSymbol(latex_mathspace[space_]); parent_.insertSymbol(latex_mathspace[space_]);
} }