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

[STR New]

Link: http://www.fltk.org/str.php?L2811
Version: 1.3.0


The next_visible_or_not method will return the same item as it is passed if
m->text is false for the passed in menu item.

if that item is also not visible (m->visible() returns false) then the
loop in Fl_Menu_item::next loops forever with neither n nor m changing,

A simple fix is to add this after the call to next_visible_or_not: 

    if (!m->text) return m;

This was exposed with flwm on FreeBSD which would lock up under some
conditions when raising the menu, with the above fix it works perfectly.


Link: http://www.fltk.org/str.php?L2811
Version: 1.3.0

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

Reply via email to