diff --git a/mixer/src/Module.C b/mixer/src/Module.C index 332e359..2453684 100644 --- a/mixer/src/Module.C +++ b/mixer/src/Module.C @@ -399,6 +399,9 @@ Module::draw_label ( void ) void Module::insert_menu_cb ( const Fl_Menu_ *m ) { + if ( ! m->mvalue() || m->mvalue()->flags & FL_SUBMENU_POINTER || m->mvalue()->flags & FL_SUBMENU ) + return; + void * v = m->mvalue()->user_data(); if ( v ) @@ -465,6 +468,9 @@ Module::menu_cb ( const Fl_Menu_ *m ) { char picked[256]; + if ( ! m->mvalue() || m->mvalue()->flags & FL_SUBMENU_POINTER || m->mvalue()->flags & FL_SUBMENU ) + return; + strncpy( picked, m->mvalue()->label(), sizeof( picked ) ); // m->item_pathname( picked, sizeof( picked ) );