]> 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 3f202b50ce6566002b0d3ab020a5e459e3e0c3f3..1e8fa0d029ddadd4fa2685aba5e00adff745aad6 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /**
  * \file FormMathsSpace.C
  * Copyright 2001 The LyX Team.
@@ -23,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)
 {}
 
@@ -41,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);
@@ -57,7 +57,7 @@ void FormMathsSpace::build()
 
 void FormMathsSpace::apply()
 {
-       if (space_ > 0)
+       if (space_ >= 0)
                parent_.insertSymbol(latex_mathspace[space_]);
 }