PNS: clear leftover vias from previous trace in DP placer

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9283
This commit is contained in:
Jon Evans 2021-10-27 21:58:42 -04:00
parent e9661161d2
commit 4a9b3d9673
1 changed files with 4 additions and 0 deletions

View File

@ -693,6 +693,10 @@ bool DIFF_PAIR_PLACER::routeHead( const VECTOR2I& aP )
m_currentTrace.AppendVias ( makeVia( m_currentTrace.CP().CPoint( -1 ), m_netP ),
makeVia( m_currentTrace.CN().CPoint( -1 ), m_netN ) );
}
else
{
m_currentTrace.RemoveVias();
}
return true;
}