Don't halt expansion on zero-length

We avoid counting endpoints for tracks that have no length
This commit is contained in:
Seth Hillbrand 2022-02-07 13:53:13 -08:00
parent fc3cad0b54
commit 51d7b49067
1 changed files with 4 additions and 1 deletions

View File

@ -1276,8 +1276,11 @@ void PCB_SELECTION_TOOL::selectAllConnectedTracks(
for( PCB_TRACK* track : trackMap[pt] )
{
if( layerSetCu.Contains( track->GetLayer() ) )
if( track->GetStart() != track->GetEnd()
&& layerSetCu.Contains( track->GetLayer() ) )
{
pt_count++;
}
}
if( pt_count > 2 || gotVia || gotNonStartPad )