Repair variable resolution recursion guard.
This commit is contained in:
parent
662a6d24e7
commit
c8d1c1f1a4
|
@ -895,7 +895,7 @@ wxString SCH_LABEL_BASE::GetShownText( const SCH_SHEET_PATH* aPath, bool aAllowE
|
||||||
std::function<bool( wxString* )> textResolver =
|
std::function<bool( wxString* )> textResolver =
|
||||||
[&]( wxString* token ) -> bool
|
[&]( wxString* token ) -> bool
|
||||||
{
|
{
|
||||||
return ResolveTextVar( aPath, token, aDepth );
|
return ResolveTextVar( aPath, token, aDepth + 1 );
|
||||||
};
|
};
|
||||||
|
|
||||||
wxString text = EDA_TEXT::GetShownText( aAllowExtraText, aDepth );
|
wxString text = EDA_TEXT::GetShownText( aAllowExtraText, aDepth );
|
||||||
|
|
Loading…
Reference in New Issue