Handle m_alternates in operator= and copy c'tor.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17966
This commit is contained in:
Jeff Young 2024-05-07 15:07:16 +01:00
parent b425c54071
commit 8aab764c33
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,7 @@ SCH_PIN::SCH_PIN( SCH_SYMBOL* aParentSymbol, const wxString& aNumber, const wxSt
SCH_PIN::SCH_PIN( const SCH_PIN& aPin ) :
SCH_ITEM( aPin ),
m_libPin( aPin.m_libPin ),
m_alternates( aPin.m_alternates ),
m_position( aPin.m_position ),
m_length( aPin.m_length ),
m_orientation( aPin.m_orientation ),
@ -215,6 +216,7 @@ SCH_PIN& SCH_PIN::operator=( const SCH_PIN& aPin )
SCH_ITEM::operator=( aPin );
m_libPin = aPin.m_libPin;
m_alternates = aPin.m_alternates;
m_alt = aPin.m_alt;
m_name = aPin.m_name;
m_number = aPin.m_number;