Update netclasses when loading footprint

When clearing the pcb in footprint editor, we need to transfer the
netclass settings to ensure we have the correct defaults for the new
footprint.

Fixes: lp:1751583
* https://bugs.launchpad.net/kicad/+bug/1751583
This commit is contained in:
Seth Hillbrand 2018-05-26 06:11:13 -07:00
parent 9354372a0c
commit 9e4511eb11
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ bool FOOTPRINT_EDIT_FRAME::Clear_Pcb( bool aQuery )
if( GetBoard() )
board->SetDesignSettings( GetBoard()->GetDesignSettings() );
board->SynchronizeNetsAndNetClasses();
SetBoard( board );
SetCurItem( NULL );