Only update properties from a "real" project.

Fixes https://gitlab.com/kicad/code/kicad/issues/6268
This commit is contained in:
Jeff Young 2022-09-22 10:12:38 +01:00
parent e4865ce543
commit 839d31d427
1 changed files with 3 additions and 1 deletions

View File

@ -1441,7 +1441,9 @@ std::set<wxString> BOARD::GetNetClassAssignmentCandidates() const
void BOARD::SynchronizeProperties()
{
if( m_project )
wxCHECK( m_project, /*void*/ );
if( !m_project->IsNullProject() )
SetProperties( m_project->GetTextVars() );
}