DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2654
Version: 1.3-current


Would the following change fix this problem ?


Index: /Users/mgouy/Documents/fltk/COCOA/branch-1.3/src/Fl_Menu.cxx
===================================================================
--- /Users/mgouy/Documents/fltk/COCOA/branch-1.3/src/Fl_Menu.cxx        
(revision
8641)
+++ /Users/mgouy/Documents/fltk/COCOA/branch-1.3/src/Fl_Menu.cxx        (working
copy)
@@ -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();


Link: http://www.fltk.org/str.php?L2654
Version: 1.3-current

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

Reply via email to