From 5589cdf921b2713bebaec03c157544dc1e05c95a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 19 Aug 2020 20:21:22 +0100 Subject: [PATCH] Copy properties in module operator= and copy constructors. Fixes https://gitlab.com/kicad/code/kicad/issues/5256 --- pcbnew/class_module.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pcbnew/class_module.cpp b/pcbnew/class_module.cpp index 7379803bd6..34aa160e44 100644 --- a/pcbnew/class_module.cpp +++ b/pcbnew/class_module.cpp @@ -128,8 +128,9 @@ MODULE::MODULE( const MODULE& aModule ) : // Copy auxiliary data: 3D_Drawings info m_3D_Drawings = aModule.m_3D_Drawings; - m_Doc = aModule.m_Doc; - m_KeyWord = aModule.m_KeyWord; + 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();