diff --git a/pcbnew/tools/conditional_menu.cpp b/pcbnew/tools/conditional_menu.cpp index 2184f36d6b..a0e0937d80 100644 --- a/pcbnew/tools/conditional_menu.cpp +++ b/pcbnew/tools/conditional_menu.cpp @@ -55,8 +55,15 @@ CONTEXT_MENU* CONDITIONAL_MENU::Generate( SELECTION& aSelection ) { const SELECTION_CONDITION& cond = it->Condition(); - if( !cond( aSelection ) ) + try + { + if( !cond( aSelection ) ) + continue; + } + catch( std::exception& e ) + { continue; + } switch( it->Type() ) {