Don't number aperture pads.
Fixes: lp:1781760 * https://bugs.launchpad.net/kicad/+bug/1781760
This commit is contained in:
@@ -99,12 +99,13 @@ void ARRAY_CREATOR::Invoke()
|
||||
// implicit numbering by incrementing the items during creation
|
||||
if( new_item && array_opts->NumberingStartIsSpecified() )
|
||||
{
|
||||
// Renumber pads. Only new pad number renumbering has meaning,
|
||||
// in the footprint editor.
|
||||
// Renumber non-aperture pads.
|
||||
if( new_item->Type() == PCB_PAD_T )
|
||||
{
|
||||
const wxString padName = array_opts->GetItemNumber( ptN );
|
||||
static_cast<D_PAD*>( new_item )->SetName( padName );
|
||||
D_PAD* pad = static_cast<D_PAD*>( new_item );
|
||||
|
||||
if( !pad->IsAperturePad() )
|
||||
pad->SetName( array_opts->GetItemNumber( ptN ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user