diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-05-15 07:42:53 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-05-15 07:42:53 +0000 |
| commit | d7a34f00617967375cdc8b26b34d72c4ef13ef6d (patch) | |
| tree | 9f0a088d1b2c54b7fdd9a543266bc7346e25986f /FL | |
| parent | e37b4526fc387b98939bf9b69be85db0daf0d5d3 (diff) | |
Fixed possible selection of submenu items in FL_INput_Choice (STR 1676)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5831 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Input_Choice.H | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl_Input_Choice.H b/FL/Fl_Input_Choice.H index 344827ed1..45fbe70db 100644 --- a/FL/Fl_Input_Choice.H +++ b/FL/Fl_Input_Choice.H @@ -59,6 +59,8 @@ class Fl_Input_Choice : public Fl_Group { static void menu_cb(Fl_Widget*, void *data) { Fl_Input_Choice *o=(Fl_Input_Choice *)data; + const Fl_Menu_Item *item = o->menubutton()->mvalue(); + if ( item && item->flags & (FL_SUBMENU|FL_SUBMENU_POINTER) ) return; // ignore submenus o->inp_->value(o->menu_->text()); o->do_callback(); } |
