From 554b7e2d3eff14f4ca6676b54cf6ed0f994c706f Mon Sep 17 00:00:00 2001 From: John Levon Date: Sat, 30 Nov 2002 04:08:21 +0000 Subject: [PATCH] fix maths crash git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5754 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 5 +++++ src/frontends/xforms/FormMathsBitmap.C | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index e44d326b4d..1d7d4e7f56 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2002-11-30 John Levon + + * FormMathsBitmap.C: actually set dialog_->button_close + to the added button + 2002-11-30 John Levon * forms/form_maths_panel.fd: small fix diff --git a/src/frontends/xforms/FormMathsBitmap.C b/src/frontends/xforms/FormMathsBitmap.C index 3aa14f1309..12a617b7b9 100644 --- a/src/frontends/xforms/FormMathsBitmap.C +++ b/src/frontends/xforms/FormMathsBitmap.C @@ -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();