diff --git a/CHANGES b/CHANGES index a02b53540..d5ba2787c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.5rc3 + - Fl_Menu_::find_item() didn't determine the menu path + properly (STR #481) - The build system now creates image libraries named "libfltk_name.a" instead of "libname.a" to avoid clobbering an existing installed library (STR #480) diff --git a/src/Fl_Menu_.cxx b/src/Fl_Menu_.cxx index 748e6bf16..c892165bd 100644 --- a/src/Fl_Menu_.cxx +++ b/src/Fl_Menu_.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Menu_.cxx,v 1.7.2.8.2.10 2004/07/27 16:02:21 easysw Exp $" +// "$Id: Fl_Menu_.cxx,v 1.7.2.8.2.11 2004/08/09 03:16:22 easysw Exp $" // // Common menu code for the Fast Light Tool Kit (FLTK). // @@ -96,6 +96,7 @@ Fl_Menu_::find_item(const char *name) // END OF SUBMENU? Pop back one level. char *ss = strrchr(menupath, '/'); if ( ss ) *ss = 0; + else menupath[0] = '\0'; continue; } @@ -224,5 +225,5 @@ void Fl_Menu_::clear() { } // -// End of "$Id: Fl_Menu_.cxx,v 1.7.2.8.2.10 2004/07/27 16:02:21 easysw Exp $". +// End of "$Id: Fl_Menu_.cxx,v 1.7.2.8.2.11 2004/08/09 03:16:22 easysw Exp $". //