pcbnew: Get correct end when dragging

The selection for interactive drag uses cursor position  off grid to
choose the element for dragging.  We pass the same value into the start
dragging routine to choose the correct end of the element.

Fixes: lp:1813665
* https://bugs.launchpad.net/kicad/+bug/1813665
This commit is contained in:
Seth Hillbrand 2019-01-27 21:14:34 -08:00
parent 577bb73320
commit cf6ba6ad94
1 changed files with 1 additions and 1 deletions

View File

@ -1172,7 +1172,7 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
return 0;
}
VECTOR2I p0 = controls()->GetCursorPosition();
VECTOR2I p0 = controls()->GetCursorPosition( false );
int dragMode = aEvent.Parameter<int64_t> ();