Zero out number of non-numberable pads in ImportSettingsFrom().

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16769
This commit is contained in:
Jeff Young 2024-01-26 14:04:20 +00:00
parent 053a0aade7
commit c5bd62434b
1 changed files with 4 additions and 0 deletions

View File

@ -1478,6 +1478,10 @@ void PAD::ImportSettingsFrom( const PAD& aMasterPad )
SetAttribute( aMasterPad.GetAttribute() ); SetAttribute( aMasterPad.GetAttribute() );
SetProperty( aMasterPad.GetProperty() ); SetProperty( aMasterPad.GetProperty() );
// Must be after setting attribute and layerSet
if( !CanHaveNumber() )
SetNumber( wxEmptyString );
// I am not sure the m_LengthPadToDie should be imported, because this is a parameter // I am not sure the m_LengthPadToDie should be imported, because this is a parameter
// really specific to a given pad (JPC). // really specific to a given pad (JPC).
#if 0 #if 0