From: Angus Leeming Date: Fri, 7 Sep 2001 16:12:20 +0000 (+0000) Subject: Fix bug: X-Git-Tag: 1.6.10~20643 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dfea8a9dadb6806655c23c0b882357d27f8a5f2b;p=features.git Fix bug: 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 --- diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 64dd008728..c75cd2c1cf 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -6,6 +6,9 @@ 2001-09-07 Angus Leeming + * 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. diff --git a/src/frontends/xforms/FormMathsSpace.C b/src/frontends/xforms/FormMathsSpace.C index 6946a6e919..dab34e49ad 100644 --- a/src/frontends/xforms/FormMathsSpace.C +++ b/src/frontends/xforms/FormMathsSpace.C @@ -40,6 +40,7 @@ void FormMathsSpace::build() dialog_.reset(build_maths_space()); fl_set_button(dialog_->radio_thin, 1); + space_ = 1; bc().setOK(dialog_->button_ok); bc().setApply(dialog_->button_apply); @@ -56,7 +57,7 @@ void FormMathsSpace::build() void FormMathsSpace::apply() { - if (space_ > 0) + if (space_ >= 0) parent_.insertSymbol(latex_mathspace[space_]); }