summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-06-03 14:07:52 +0000
committerManolo Gouy <Manolo>2011-06-03 14:07:52 +0000
commitf5de82aac5b6bedd90f841eb53fadf582046e4f1 (patch)
tree753b5458e9bfe1f8f96d237ddf72c0217eae0f7e /src
parentad737003881b088759f1e2c66a0a9107a5fe447c (diff)
Fix STR #2654.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Menu.cxx2
1 files changed, 1 insertions, 1 deletions
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();