summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-08-09 03:16:22 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-08-09 03:16:22 +0000
commit504abf708fdcddd938537de1ec1fa7bdbbf0120c (patch)
treeba41dea28bd2e2539d1d7099dff60ce211439ee8
parent1215b40f82222881101c5bfebe62da9ffef7dff2 (diff)
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
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Menu_.cxx5
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 $".
//