]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsSpace.C
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormMathsSpace.C
index 31ca06b7673709ad24ced249a964a590ca1445e6..1e8fa0d029ddadd4fa2685aba5e00adff745aad6 100644 (file)
@@ -22,7 +22,7 @@ extern char * latex_mathspace[];
 
 FormMathsSpace::FormMathsSpace(LyXView * lv, Dialogs * d,
                               FormMathsPanel const & p)
-       : FormMathsSub(lv, d, p, _("Maths Spacing")),
+       : FormMathsSub(lv, d, p, _("Maths Spacing"), false),
          space_(-1)
 {}
 
@@ -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);
@@ -51,14 +52,12 @@ void FormMathsSpace::build()
        bc().addReadOnly(dialog_->radio_negative);
        bc().addReadOnly(dialog_->radio_quadratin);
        bc().addReadOnly(dialog_->radio_twoquadratin);
-
-       bc().refresh();
 }
 
 
 void FormMathsSpace::apply()
 {
-       if (space_ > 0)
+       if (space_ >= 0)
                parent_.insertSymbol(latex_mathspace[space_]);
 }