Router, place via: fix issue created by 45b2bc: cancelling via must be made
only when the select layer is called. Fixes #7606 https://gitlab.com/kicad/code/kicad/issues/7606
This commit is contained in:
parent
9cc2781d55
commit
d0b91b1106
|
@ -758,12 +758,12 @@ int ROUTER_TOOL::handleLayerSwitch( const TOOL_EVENT& aEvent, bool aForceVia )
|
||||||
|
|
||||||
// Reset the cursor to the end of the track
|
// Reset the cursor to the end of the track
|
||||||
controls()->SetCursorPosition( m_endSnapPoint );
|
controls()->SetCursorPosition( m_endSnapPoint );
|
||||||
|
|
||||||
|
if( targetLayer == UNDEFINED_LAYER ) // cancelled by user
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( targetLayer == UNDEFINED_LAYER )
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
// fixme: P&S supports more than one fixed layer pair. Update the dialog?
|
// fixme: P&S supports more than one fixed layer pair. Update the dialog?
|
||||||
sizes.ClearLayerPairs();
|
sizes.ClearLayerPairs();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue