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 );