From d3334ed9f08e6819838e3d25a0551d1998537706 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 1 Mar 2024 13:03:37 -0800 Subject: [PATCH] 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 --- pcbnew/tools/pad_tool.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/pad_tool.cpp b/pcbnew/tools/pad_tool.cpp index 91c88c73e2..07ff8a4e99 100644 --- a/pcbnew/tools/pad_tool.cpp +++ b/pcbnew/tools/pad_tool.cpp @@ -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( collector[i] ) ); + { + PAD* pad = static_cast( collector[i] ); + + if( !pad->IsAperturePad() ) + selectedPads.push_back( pad ); + } } selectedPads.unique();