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:
parent
8a0be64ad4
commit
4a79d1be56
|
@ -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 ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue