Browse Source

A BOARD may not always have a project

For example, if it's the footprint editor model

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15283
newinvert
Jon Evans 2 years ago
parent
commit
2459949d0d
  1. 7
      pcbnew/board.cpp

7
pcbnew/board.cpp

@ -365,8 +365,11 @@ void BOARD::GetContextualTextVars( wxArrayString* aVars ) const
GetTitleBlock().GetContextualTextVars( aVars );
for( std::pair<wxString, wxString> entry : GetProject()->GetTextVars() )
add( entry.first );
if( GetProject() )
{
for( std::pair<wxString, wxString> entry : GetProject()->GetTextVars() )
add( entry.first );
}
}

Loading…
Cancel
Save