Honour prime-event-location when starting router.
Fixes https://gitlab.com/kicad/code/kicad/issues/11239
This commit is contained in:
parent
719874fe9c
commit
a54bbfe12b
|
@ -277,7 +277,8 @@ bool TOOL_BASE::checkSnap( ITEM *aItem )
|
|||
void TOOL_BASE::updateStartItem( const TOOL_EVENT& aEvent, bool aIgnorePads )
|
||||
{
|
||||
int tl = getView()->GetTopLayer();
|
||||
VECTOR2I cp = controls()->GetCursorPosition( !aEvent.Modifier( MD_SHIFT ) );
|
||||
VECTOR2I cp = aEvent.IsPrime() ? aEvent.Position()
|
||||
: controls()->GetCursorPosition( !aEvent.Modifier( MD_SHIFT ) );
|
||||
VECTOR2I p;
|
||||
GAL* gal = m_toolMgr->GetView()->GetGAL();
|
||||
|
||||
|
|
Loading…
Reference in New Issue