Copy Pad_Master when copying BOARD_DESIGN_SETTINGS.

Fixes https://gitlab.com/kicad/code/kicad/issues/10932

(cherry picked from commit d2069e1548)
This commit is contained in:
Jeff Young 2022-02-23 18:10:53 +00:00
parent de48f41184
commit b11ec85706
1 changed files with 2 additions and 1 deletions

View File

@ -751,7 +751,8 @@ void BOARD_DESIGN_SETTINGS::initFromOther( const BOARD_DESIGN_SETTINGS& aOther )
else else
m_netClasses = aOther.m_netClasses; m_netClasses = aOther.m_netClasses;
m_defaultZoneSettings = aOther.m_defaultZoneSettings; m_Pad_Master = std::make_unique<PAD>( *aOther.m_Pad_Master );
m_defaultZoneSettings = aOther.m_defaultZoneSettings;
} }