diff options
| author | Matthias Melcher <git@matthiasm.com> | 2021-12-08 20:52:33 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2021-12-08 20:52:51 +0100 |
| commit | 1be158a840922aa03682d39926dc60ecb487063b (patch) | |
| tree | 283dcc8e45f8a094db2ffe22a046f29ac83f3656 /fluid/Fl_Window_Type.cxx | |
| parent | c1edba3137b371ea8aba60e5a111a1fa01c7b470 (diff) | |
STR 3460.b: fixed scrollbar update in widget_browser
Also fixed a bug where a Manu item was accessed by index, which
already was out of sync.
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index c42d62af7..ea2e4da54 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -1089,7 +1089,7 @@ extern Fl_Menu_Item Main_Menu[]; // Calculate new bounding box of selected widgets: void Fl_Window_Type::fix_overlay() { - Main_Menu[40].label("Hide O&verlays"); + overlay_item->label("Hide O&verlays"); overlays_invisible = 0; recalc = 1; ((Overlay_Window *)(this->o))->redraw_overlay(); @@ -1120,8 +1120,10 @@ void redraw_overlays() { void toggle_overlays(Fl_Widget *,void *) { overlays_invisible = !overlays_invisible; - if (overlays_invisible) Main_Menu[40].label("Show O&verlays"); - else Main_Menu[40].label("Hide O&verlays"); + if (overlays_invisible) + overlay_item->label("Show O&verlays"); + else + overlay_item->label("Hide O&verlays"); for (Fl_Type *o=Fl_Type::first; o; o=o->next) if (o->is_window()) { |
