From c8d1c1f1a410c1be102ebaa2a857e4e7ccf052b9 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 12 May 2024 23:47:44 +0100 Subject: [PATCH] Repair variable resolution recursion guard. --- eeschema/sch_label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sch_label.cpp b/eeschema/sch_label.cpp index 4250dbcc25..34e12fb9de 100644 --- a/eeschema/sch_label.cpp +++ b/eeschema/sch_label.cpp @@ -895,7 +895,7 @@ wxString SCH_LABEL_BASE::GetShownText( const SCH_SHEET_PATH* aPath, bool aAllowE std::function textResolver = [&]( wxString* token ) -> bool { - return ResolveTextVar( aPath, token, aDepth ); + return ResolveTextVar( aPath, token, aDepth + 1 ); }; wxString text = EDA_TEXT::GetShownText( aAllowExtraText, aDepth );