Make sure board design settings get updated when switching boards.

Fixes https://gitlab.com/kicad/code/kicad/issues/5129
This commit is contained in:
Jeff Young 2020-08-12 16:45:10 +01:00
parent 84425f5a40
commit fad18dccd5
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ bool FOOTPRINT_EDIT_FRAME::Clear_Pcb( bool aQuery )
BOARD* board = new BOARD; BOARD* board = new BOARD;
board->GetDesignSettings() = GetDesignSettings();
board->SynchronizeNetsAndNetClasses(); board->SynchronizeNetsAndNetClasses();
SetBoard( board ); SetBoard( board );