New move tool doesn't require GetAndPlace to jump through hoops.

And at least one of those hoops leaves the cursor forced.

Fixes: lp:1839877
* https://bugs.launchpad.net/kicad/+bug/1839877
This commit is contained in:
Jeff Young 2019-08-13 09:58:54 +01:00
parent 1c295d46a9
commit dd938b02df
1 changed files with 0 additions and 7 deletions

View File

@ -1124,15 +1124,8 @@ int SELECTION_TOOL::GetAndPlace( const TOOL_EVENT& aEvent )
// cursor before waiting for mouse move events
m_selection.SetReferencePoint( module->GetPosition() );
// Place event on module origin first, so the generic anchor snap
// doesn't just choose the closest pin for us
viewCtrls->ForceCursorPosition( true, module->GetPosition() );
// pick the component up and start moving
m_toolMgr->RunAction( PCB_ACTIONS::move, true );
// restore the previous cursor position
viewCtrls->SetCursorPosition( cursorPosition, false );
}
return 0;