From 504abf708fdcddd938537de1ec1fa7bdbbf0120c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 9 Aug 2004 03:16:22 +0000 Subject: Fl_Menu_::find_item() didn't determine the menu path properly (STR #481) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 ++ src/Fl_Menu_.cxx | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 $". // -- cgit v1.2.3