From c01681a32e92cd788ed30256d607ca3089ef2724 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. (cherry picked from commit c8d1c1f1a410c1be102ebaa2a857e4e7ccf052b9) --- 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 6e933f48fe..781512b854 100644 --- a/eeschema/sch_label.cpp +++ b/eeschema/sch_label.cpp @@ -892,7 +892,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 );