From f5de82aac5b6bedd90f841eb53fadf582046e4f1 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 3 Jun 2011 14:07:52 +0000 Subject: Fix STR #2654. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Menu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index bc0f74bce..6a5125b43 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -824,7 +824,7 @@ const Fl_Menu_Item* Fl_Menu_Item::pulldown( Fl_Group::current(0); // fix possible user error... button = pbutton; - if (pbutton) { + if (pbutton && pbutton->window()) { for (Fl_Window* w = pbutton->window(); w; w = w->window()) { X += w->x(); Y += w->y(); -- cgit v1.2.3