Preserve module editor settings when a new footprint is created.

This commit is contained in:
Maciej Suminski 2015-08-25 11:44:45 +02:00
parent 8fa28797f9
commit 11275f78e5
1 changed files with 5 additions and 0 deletions

View File

@ -107,6 +107,11 @@ bool FOOTPRINT_EDIT_FRAME::Clear_Pcb( bool aQuery )
GetScreen()->ClrModify();
BOARD* board = new BOARD;
// Transfer current design settings
if( GetBoard() )
board->SetDesignSettings( GetBoard()->GetDesignSettings() );
SetBoard( board );
SetCurItem( NULL );