diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 9c5cfe075..8f350aa62 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -987,7 +987,7 @@ const Fl_Menu_Item* Fl_Menu_Item::pulldown( } } } - const Fl_Menu_Item* m = pp.current_item; + const Fl_Menu_Item* m = (pbutton && wp.deleted()) ? NULL : pp.current_item; delete pp.fakemenu; while (pp.nummenus>1) delete pp.p[--pp.nummenus]; mw.hide();