Make sure router tool passes events it doesn't handle.

Fixes undo/redo when router tool is active but not routing.
This commit is contained in:
Jeff Young 2020-10-05 23:16:37 +01:00
parent 18a3c4c1db
commit 35fa857fd8
1 changed files with 8 additions and 0 deletions

View File

@ -1182,6 +1182,10 @@ int ROUTER_TOOL::MainLoop( const TOOL_EVENT& aEvent )
{
m_menu.ShowContextMenu( selection() );
}
else
{
evt->SetPassEvent();
}
if( m_cancelled )
{
@ -1252,6 +1256,10 @@ void ROUTER_TOOL::performDragging( int aMode )
break;
}
else
{
evt->SetPassEvent();
}
handleCommonEvents( *evt );
}