Release project before potentially reloading project and board.

This commit is contained in:
Jeff Young 2021-07-30 18:36:33 +01:00
parent e87fdf06c1
commit b8bb04c432
1 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,12 @@ struct ZONE_FILL_TEST_FIXTURE
void loadBoard( const wxString& relPath )
{
if( m_board )
{
m_board->SetProject( nullptr );
m_board = nullptr;
}
wxString boardPath = KI_TEST::GetPcbnewTestDataDir() + relPath + ".kicad_pcb";
wxString projectPath = KI_TEST::GetPcbnewTestDataDir() + relPath + ".kicad_pro";