fix copy constructor with new MODULE::m_initial_comments member handling

This commit is contained in:
Dick Hollenbeck 2013-06-23 17:41:35 -05:00
parent 1f9ee2e45e
commit 9d86345ea5
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}