Do not re-number aperture pads

Aperture pads do not have numbers, so reserving space for them will
cause the actual numbered pads to become out of order

(cherry picked from commit d3334ed9f0)
This commit is contained in:
Seth Hillbrand 2024-03-01 13:03:37 -08:00
parent 09f32d8c86
commit 1e03266dfe
1 changed files with 6 additions and 1 deletions

View File

@ -430,7 +430,12 @@ int PAD_TOOL::EnumeratePads( const TOOL_EVENT& aEvent )
collector.Collect( board(), { PCB_PAD_T }, testpoint, guide );
for( int i = 0; i < collector.GetCount(); ++i )
selectedPads.push_back( static_cast<PAD*>( collector[i] ) );
{
PAD* pad = static_cast<PAD*>( collector[i] );
if( !pad->IsAperturePad() )
selectedPads.push_back( pad );
}
}
selectedPads.unique();