Browse Source

Preserve module editor settings when a new footprint is created.

pull/7/head
Maciej Suminski 10 years ago
parent
commit
11275f78e5
  1. 5
      pcbnew/initpcb.cpp

5
pcbnew/initpcb.cpp

@ -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…
Cancel
Save