Browse Source

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
7.0
Seth Hillbrand 3 years ago
parent
commit
279edcefdc
  1. 5
      pcbnew/tools/drawing_tool.cpp

5
pcbnew/tools/drawing_tool.cpp

@ -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();

Loading…
Cancel
Save