Don't snap synthetic priming event.

We need to let the consumer of the event do snapping (so that, for
instance, it can also snap to tracks, pads, etc.)

Fixes https://gitlab.com/kicad/code/kicad/issues/4365
This commit is contained in:
Jeff Young 2020-11-09 17:17:46 +00:00
parent 6417015b8a
commit bd63c018c9
1 changed files with 1 additions and 2 deletions

View File

@ -1159,11 +1159,10 @@ int ROUTER_TOOL::MainLoop( const TOOL_EVENT& aEvent )
ctls->ShowCursor( true );
ctls->ForceCursorPosition( false );
m_cancelled = false;
m_startSnapPoint = ctls->GetCursorPosition();
// Prime the pump
if( aEvent.HasPosition() )
m_toolMgr->PrimeTool( m_startSnapPoint );
m_toolMgr->PrimeTool( ctls->GetCursorPosition( false ) );
auto setCursor =
[&]()