pcbnew: Reload board after changing board paramters

The old board pointer maintains shared pointers to netclasses (among
other things) that do not get released by the
SynchronizeNetsAndClasses() call.  We reload the board to fully release
the pointers.

Fixes: lp:1835533
* https://bugs.launchpad.net/kicad/+bug/1835533
This commit is contained in:
Seth Hillbrand 2019-07-05 13:48:46 -07:00
parent 541d4358b8
commit 09100100c9
1 changed files with 1 additions and 0 deletions

View File

@ -267,6 +267,7 @@ bool PANEL_SETUP_NETCLASSES::TransferDataFromWindow()
m_Pcb->SynchronizeNetsAndNetClasses();
m_BrdSettings->SetCurrentNetClass( NETCLASS::Default );
m_Frame->SetBoard( m_Pcb );
return true;
}