Author: manolo
Date: 2011-06-03 07:07:52 -0700 (Fri, 03 Jun 2011)
New Revision: 8775
Log:
Fix STR #2654.

Modified:
   branches/branch-1.3/src/Fl_Menu.cxx

Modified: branches/branch-1.3/src/Fl_Menu.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Menu.cxx 2011-06-03 10:06:27 UTC (rev 8774)
+++ branches/branch-1.3/src/Fl_Menu.cxx 2011-06-03 14:07:52 UTC (rev 8775)
@@ -824,7 +824,7 @@
   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();

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to