From dac6c662c598ad55385fb9d4718993345d93505e Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Sun, 23 Jun 2013 17:41:35 -0500 Subject: [PATCH] fix copy constructor with new MODULE::m_initial_comments member handling --- pcbnew/class_module.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/class_module.cpp b/pcbnew/class_module.cpp index 07284f83f8..f5b29906a6 100644 --- a/pcbnew/class_module.cpp +++ b/pcbnew/class_module.cpp @@ -83,8 +83,7 @@ MODULE::MODULE( BOARD* parent ) : MODULE::MODULE( const MODULE& aModule ) : - BOARD_ITEM( aModule ), - m_initial_comments( 0 ) + BOARD_ITEM( aModule ) { m_Pos = aModule.m_Pos; m_LibRef = aModule.m_LibRef; @@ -166,6 +165,9 @@ MODULE::MODULE( const MODULE& aModule ) : // Ensure auxiliary data is up to date CalculateBoundingBox(); + + m_initial_comments = aModule.m_initial_comments ? + new wxArrayString( *aModule.m_initial_comments ) : 0; }