Commit 9d86345e authored by Dick Hollenbeck's avatar Dick Hollenbeck

fix copy constructor with new MODULE::m_initial_comments member handling

parent 1f9ee2e4
...@@ -83,8 +83,7 @@ MODULE::MODULE( BOARD* parent ) : ...@@ -83,8 +83,7 @@ MODULE::MODULE( BOARD* parent ) :
MODULE::MODULE( const MODULE& aModule ) : MODULE::MODULE( const MODULE& aModule ) :
BOARD_ITEM( aModule ), BOARD_ITEM( aModule )
m_initial_comments( 0 )
{ {
m_Pos = aModule.m_Pos; m_Pos = aModule.m_Pos;
m_LibRef = aModule.m_LibRef; m_LibRef = aModule.m_LibRef;
...@@ -166,6 +165,9 @@ MODULE::MODULE( const MODULE& aModule ) : ...@@ -166,6 +165,9 @@ MODULE::MODULE( const MODULE& aModule ) :
// Ensure auxiliary data is up to date // Ensure auxiliary data is up to date
CalculateBoundingBox(); CalculateBoundingBox();
m_initial_comments = aModule.m_initial_comments ?
new wxArrayString( *aModule.m_initial_comments ) : 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment