Preserve module editor settings when a new footprint is created.
This commit is contained in:
parent
8fa28797f9
commit
11275f78e5
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue