Copy properties in module operator= and copy constructors.

Fixes https://gitlab.com/kicad/code/kicad/issues/5256
This commit is contained in:
Jeff Young 2020-08-19 20:21:22 +01:00
parent d4affa9985
commit 5589cdf921
1 changed files with 5 additions and 2 deletions

View File

@ -130,6 +130,7 @@ MODULE::MODULE( const MODULE& aModule ) :
m_Doc = aModule.m_Doc;
m_KeyWord = aModule.m_KeyWord;
m_properties = aModule.m_properties;
m_arflag = 0;
@ -246,6 +247,7 @@ MODULE& MODULE::operator=( MODULE&& aOther )
m_3D_Drawings = aOther.m_3D_Drawings;
m_Doc = aOther.m_Doc;
m_KeyWord = aOther.m_KeyWord;
m_properties = aOther.m_properties;
// Ensure auxiliary data is up to date
CalculateBoundingBox();
@ -337,6 +339,7 @@ MODULE& MODULE::operator=( const MODULE& aOther )
m_3D_Drawings = aOther.m_3D_Drawings;
m_Doc = aOther.m_Doc;
m_KeyWord = aOther.m_KeyWord;
m_properties = aOther.m_properties;
// Ensure auxiliary data is up to date
CalculateBoundingBox();