pcbnew: Fixes crash when a module is changed after modification in the module editor.
This commit is contained in:
+1
-2
@@ -408,6 +408,7 @@ bool DIALOG_EXCHANGE_MODULE::Change_1_Module( MODULE* aModule,
|
||||
return false;
|
||||
}
|
||||
|
||||
m_parent->Exchange_Module( aModule, newModule, aUndoPickList );
|
||||
m_parent->GetBoard()->Add( newModule, ADD_APPEND );
|
||||
|
||||
if( aModule == m_currentModule )
|
||||
@@ -415,8 +416,6 @@ bool DIALOG_EXCHANGE_MODULE::Change_1_Module( MODULE* aModule,
|
||||
|
||||
m_WinMessages->AppendText( wxT( " OK\n" ) );
|
||||
|
||||
m_parent->Exchange_Module( aModule, newModule, aUndoPickList );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user