Fix an ASAN issue in SCH_SHEET

This commit is contained in:
Jon Evans 2021-01-18 21:16:48 -05:00
parent 330d717c69
commit 4052b2153a
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ SCH_SHEET::SCH_SHEET( const SCH_SHEET& aSheet ) :
m_pins.back()->SetParent( this ); m_pins.back()->SetParent( this );
} }
for( SCH_FIELD& field : m_fields )
field.SetParent( this );
m_borderWidth = aSheet.m_borderWidth; m_borderWidth = aSheet.m_borderWidth;
m_borderColor = aSheet.m_borderColor; m_borderColor = aSheet.m_borderColor;
m_backgroundColor = aSheet.m_backgroundColor; m_backgroundColor = aSheet.m_backgroundColor;