Ensure all custom event ids are processed by ACTION_MENU

Fixes: lp:1829759
* https://bugs.launchpad.net/kicad/+bug/1829759
This commit is contained in:
Jon Evans 2019-05-20 23:45:12 -04:00
parent c5f8a6b26e
commit cbb0d74bd5
1 changed files with 1 additions and 1 deletions

View File

@ -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,