summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Menu_Button.cxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 89a5863b1..9128af1d2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
CHANGES IN FLTK 1.3.0
+ - Removed an XForms compatibility "feature" that prevented the down
+ array of Fl_Menu_Button from drawing (STR #2141).
- New helper class Fl_Watch to simplify safe handling of widget
deletion in callbacks. This is used in Fl_Widget::do_callback()
to prevent accessing widgets after deletion in the callback.
diff --git a/src/Fl_Menu_Button.cxx b/src/Fl_Menu_Button.cxx
index 9389ca49f..4c626ee5e 100644
--- a/src/Fl_Menu_Button.cxx
+++ b/src/Fl_Menu_Button.cxx
@@ -37,7 +37,7 @@ void Fl_Menu_Button::draw() {
draw_box(pressed_menu_button_ == this ? fl_down(box()) : box(), color());
draw_label();
if (Fl::focus() == this) draw_focus();
- if (box() == FL_FLAT_BOX) return; // for XForms compatibility
+ // ** if (box() == FL_FLAT_BOX) return; // for XForms compatibility
int H = (labelsize()-3)&-2;
int X = x()+w()-H*2;
int Y = y()+(h()-H)/2;