Fixed Fl_Menu issue with unusual menu flags (STR #2680).

Setting some flags in a terminating Fl_Menu_Item (one with
a NULL label/text/name) caused an endless loop.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2011-07-20 13:50:15 +00:00
parent 5b98e80a4f
commit 2d52aebc6d
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
CHANGES IN FLTK 1.3.1
- Fixed Fl_Menu issue with unusual menu flags (STR #2680)
- Fixed Windows DLL import of fl_xid() (STR #2670)
CHANGES IN FLTK 1.3.0

View File

@ -72,7 +72,7 @@ const Fl_Menu_Item* Fl_Menu_Item::next(int n) const {
if (!m->visible()) n++;
while (n) {
m = next_visible_or_not(m);
if (m->visible()) n--;
if (m->visible() || !m->text) n--;
}
return m;
}