From 11275f78e5c54958f943fca4398d6ed656481e4d Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 25 Aug 2015 11:44:45 +0200 Subject: [PATCH] Preserve module editor settings when a new footprint is created. --- pcbnew/initpcb.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/initpcb.cpp b/pcbnew/initpcb.cpp index 7092822fb4..3d4a64a383 100644 --- a/pcbnew/initpcb.cpp +++ b/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 );