]> git.lyx.org Git - features.git/commitdiff
Fix bug:
authorAngus Leeming <leeming@lyx.org>
Fri, 7 Sep 2001 16:12:20 +0000 (16:12 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 7 Sep 2001 16:12:20 +0000 (16:12 +0000)
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

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormMathsSpace.C

index 64dd00872877ccda18f02958f24934c6a2e0e953..c75cd2c1cf5c347cf6ab28eba3bd7a7b7f03bb10 100644 (file)
@@ -6,6 +6,9 @@
 
 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.
index 6946a6e919b9b0193df70282edeae1d85d39ecd7..dab34e49ad8f95a15a589b72768d1fb037488a73 100644 (file)
@@ -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_]);
 }