| [ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File ]
STR #1848
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Unassigned |
Summary: | Menu::insert() does not work correctly when inserting an ItemList (it works like add()) |
Version: | 2.0-current |
Created By: | jspitzak |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | jspitzak 11:08 Dec 19, 2007 |
| When adding an Item that contains a "/" in the name (indicating that it is an ItemList) to an ItemList with "insert()", the new item was always added at the end of the ItemList. I fixed this with a one-line change to Menu_add.cxx:
diff Menu_add.cxx.old Menu_add.cxx 173c173 < group = (Group*)append(group, item_label, SUBMENU|flags1, 0); --- > group = (Group*)append(group, item_label, SUBMENU|flags1, insert_here);
This seems to work fine, for me, but I have not extensively tested it. | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |