Zero out number of non-numberable pads in ImportSettingsFrom().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16769
This commit is contained in:
parent
053a0aade7
commit
c5bd62434b
|
@ -1478,6 +1478,10 @@ void PAD::ImportSettingsFrom( const PAD& aMasterPad )
|
|||
SetAttribute( aMasterPad.GetAttribute() );
|
||||
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
|
||||
// really specific to a given pad (JPC).
|
||||
#if 0
|
||||
|
|
Loading…
Reference in New Issue