Don't halt expansion on zero-length
We avoid counting endpoints for tracks that have no length
This commit is contained in:
parent
fc3cad0b54
commit
51d7b49067
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue