Repair variable resolution recursion guard.

This commit is contained in:
Jeff Young 2024-05-12 23:47:44 +01:00
parent 662a6d24e7
commit c8d1c1f1a4
1 changed files with 1 additions and 1 deletions

View File

@ -895,7 +895,7 @@ wxString SCH_LABEL_BASE::GetShownText( const SCH_SHEET_PATH* aPath, bool aAllowE
std::function<bool( wxString* )> textResolver =
[&]( wxString* token ) -> bool
{
return ResolveTextVar( aPath, token, aDepth );
return ResolveTextVar( aPath, token, aDepth + 1 );
};
wxString text = EDA_TEXT::GetShownText( aAllowExtraText, aDepth );