mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 21:19:20 +00:00
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
This commit is contained in:
parent
37fdcce0a0
commit
2459949d0d
@ -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…
Reference in New Issue
Block a user