diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-09-07 16:05:25 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-09-07 16:06:32 +0200 |
| commit | 14f85de28f45fae81ccdc7bdf5ffddd4a857c9ec (patch) | |
| tree | 7e2e42c45c735a569a91d762dec41b9e7ef07bda | |
| parent | a75024213fea169bf61107437de5f26be02ca752 (diff) | |
FLUID: Fixes visibility of Compact button
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 3eddc890f..40de78306 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1084,7 +1084,7 @@ void down_box_cb(Fl_Choice* i, void *v) { void compact_cb(Fl_Light_Button* i, void* v) { if (v == LOAD) { uchar n; - if (current_widget->is_a(Fl_Type::ID_Button)) { + if (current_widget->is_a(Fl_Type::ID_Button) && !current_widget->is_a(Fl_Type::ID_Menu_Item)) { n = ((Fl_Button*)(current_widget->o))->compact(); i->value(n); i->show(); @@ -1095,7 +1095,7 @@ void compact_cb(Fl_Light_Button* i, void* v) { int mod = 0; uchar n = (uchar)i->value(); for (Fl_Type *o = Fl_Type::first; o; o = o->next) { - if (o->selected && o->is_a(Fl_Type::ID_Button)) { + if (o->selected && o->is_a(Fl_Type::ID_Button) && !o->is_a(Fl_Type::ID_Menu_Item)) { Fl_Widget_Type* q = (Fl_Widget_Type*)o; uchar v = ((Fl_Button*)(q->o))->compact(); if (n != v) { |
