7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 21:43:43 +00:00

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

View File

@ -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