summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Menu_.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Menu_.cxx b/src/Fl_Menu_.cxx
index e7db7ed9b..4b1edb4e1 100644
--- a/src/Fl_Menu_.cxx
+++ b/src/Fl_Menu_.cxx
@@ -88,8 +88,9 @@ Fl_Menu_::find_item(const char *name)
for ( int t=0; t < size(); t++ ) {
Fl_Menu_Item *m = menu_ + t;
- if (m->submenu()) {
+ if (m->flags&FL_SUBMENU) {
// IT'S A SUBMENU
+ // we do not support searches through FL_SUBMENU_POINTER links
if (menupath[0]) strlcat(menupath, "/", sizeof(menupath));
strlcat(menupath, m->label(), sizeof(menupath));
if (!strcmp(menupath, name)) return m;