Fixes STR#2335.

item_pathname() wasn't returning a pathname if the 3rd argument was a submenu item.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2010-03-30 21:37:56 +00:00
parent 4b3360a6a7
commit 4f148f79e9

View File

@ -79,6 +79,7 @@ int Fl_Menu_::item_pathname(char *name, int namelen, const Fl_Menu_Item *findite
if ( m->submenu() ) { // submenu? descend
if (*name) SAFE_STRCAT("/");
if (m->label()) SAFE_STRCAT(m->label());
if ( m == finditem ) return(0); // found? done.
} else {
if (m->label()) { // menu item?
if ( m == finditem ) { // found? tack on itemname, done.