Browse Source

Ensure all custom event ids are processed by ACTION_MENU

Fixes: lp:1829759
* https://bugs.launchpad.net/kicad/+bug/1829759
pull/15/head
Jon Evans 7 years ago
parent
commit
cbb0d74bd5
  1. 2
      common/tool/action_menu.cpp

2
common/tool/action_menu.cpp

@ -401,7 +401,7 @@ void ACTION_MENU::OnMenuEvent( wxMenuEvent& aEvent )
#endif
// Handling non-action menu entries (e.g. items in clarification list)
if( !evt && m_selected < wxID_LOWEST )
if( !evt && ( m_selected < wxID_LOWEST || m_selected > wxID_HIGHEST ) )
{
menuText = GetLabelText( aEvent.GetId() );
evt = TOOL_EVENT( TC_COMMAND, TA_CONTEXT_MENU_CHOICE, m_selected, AS_GLOBAL,

Loading…
Cancel
Save