Don't break tracks without snap

If the user asks to not snap to a track, we should also prevent the
track from snapping to the via

Fixes https://gitlab.com/kicad/code/kicad/issues/13142
This commit is contained in:
Seth Hillbrand 2022-12-14 13:50:48 -08:00
parent 10a3d57193
commit 279edcefdc
1 changed files with 4 additions and 1 deletions

View File

@ -3063,7 +3063,10 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
aCommit.Add( via );
if( track )
// If the user explicitly disables snap (using shift), then don't break the tracks into
// a chevron. This will prevent PNS from being able to connect the via and track but
// it is explicitly requested by the user
if( track && m_gridHelper.GetSnap() )
{
VECTOR2I trackStart = track->GetStart();
VECTOR2I trackEnd = track->GetEnd();