Author: greg.ercolano
Date: 2010-03-30 14:37:56 -0700 (Tue, 30 Mar 2010)
New Revision: 7373
Log:
Fixes STR#2335.
item_pathname() wasn't returning a pathname if the 3rd argument was a submenu 
item.



Modified:
   branches/branch-1.3/src/Fl_Menu_.cxx

Modified: branches/branch-1.3/src/Fl_Menu_.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Menu_.cxx        2010-03-30 21:35:40 UTC (rev 
7372)
+++ branches/branch-1.3/src/Fl_Menu_.cxx        2010-03-30 21:37:56 UTC (rev 
7373)
@@ -79,6 +79,7 @@
        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.

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

Reply via email to