Honour prime-event-location when starting router.
Fixes https://gitlab.com/kicad/code/kicad/issues/11239
(cherry picked from commit a54bbfe12b
)
This commit is contained in:
parent
1adfca8f2d
commit
e21f0ec9fb
|
@ -276,7 +276,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