diff options
| author | Greg Ercolano <erco@seriss.com> | 2010-03-30 21:37:56 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2010-03-30 21:37:56 +0000 |
| commit | 4f148f79e92dedf86a4f417a1e2329d947c1355b (patch) | |
| tree | 38ae4ca9552fd90d1cd9b779b4a568e7ae320ce1 /src/Fl_Menu_.cxx | |
| parent | 4b3360a6a741fcebaebcc3ac461586003d20d162 (diff) | |
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
Diffstat (limited to 'src/Fl_Menu_.cxx')
| -rw-r--r-- | src/Fl_Menu_.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Menu_.cxx b/src/Fl_Menu_.cxx index 7a8147337..cc7ab3911 100644 --- a/src/Fl_Menu_.cxx +++ b/src/Fl_Menu_.cxx @@ -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. |
