]> git.lyx.org Git - features.git/commitdiff
fix maths crash
authorJohn Levon <levon@movementarian.org>
Sat, 30 Nov 2002 04:08:21 +0000 (04:08 +0000)
committerJohn Levon <levon@movementarian.org>
Sat, 30 Nov 2002 04:08:21 +0000 (04:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5754 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormMathsBitmap.C

index e44d326b4d0679ae2d6c3dd7bba63074c03e5e48..1d7d4e7f569622a284208cf7b75861c1eadcbe32 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-30  John Levon  <levon@movementarian.org>
+
+       * FormMathsBitmap.C: actually set dialog_->button_close
+         to the added button
 2002-11-30  John Levon  <levon@movementarian.org>
 
        * forms/form_maths_panel.fd: small fix
index 3aa14f1309ca4626ca9757aa5f0491fb2e015ef5..12a617b7b95fd87d1c6508b9c82c2d7abb091499 100644 (file)
@@ -107,12 +107,12 @@ void FormMathsBitmap::build()
        y_ = y_close + 10;
 
        char const * const label = _("Close|^[");
-       FL_OBJECT * button_close =
+       fdui->button_close =
                fl_add_button(FL_NORMAL_BUTTON, x_, y_, 90, 30,
                              idex(_(label)).c_str());
-       fl_set_button_shortcut(button_close, scex(_(label)).c_str(), 1);
-       fl_set_object_lsize(button_close, FL_NORMAL_SIZE);
-       fl_set_object_callback(button_close, C_FormBaseCancelCB, 0);
+       fl_set_button_shortcut(fdui->button_close, scex(_(label)).c_str(), 1);
+       fl_set_object_lsize(fdui->button_close, FL_NORMAL_SIZE);
+       fl_set_object_callback(fdui->button_close, C_FormBaseCancelCB, 0);
 
        fl_end_form();