Fix erroneous early return.

Fixes https://gitlab.com/kicad/code/kicad/issues/13592
This commit is contained in:
Jeff Young 2023-01-19 12:19:25 +00:00
parent 959e20f52c
commit 715340b129
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ bool SCHEMATIC::ResolveTextVar( wxString* token, int aDepth ) const
return true;
}
return CurrentSheet().LastScreen()->GetTitleBlock().TextVarResolver( token, m_project );
if( CurrentSheet().LastScreen()->GetTitleBlock().TextVarResolver( token, m_project ) )
return true;
}
if( Prj().TextVarResolver( token ) )