Track cleaner should not remove vias from pads

Vias are stored in the board tracks list, so we need to skip them when
testing if the start/end points are both in pads

Fixes https://gitlab.com/kicad/code/kicad/issues/5086
This commit is contained in:
Seth Hillbrand 2020-08-05 13:18:47 -07:00
parent 8a0be64ad4
commit 4a79d1be56
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ void TRACKS_CLEANER::deleteTracksInPads()
for( TRACK* track : m_brd->Tracks() )
{
if( track->Type() == PCB_VIA_T )
continue;
// Mark track if connected to pads
for( D_PAD* pad : connectivity->GetConnectedPads( track ) )
{