diff --git a/eeschema/sch_sheet.cpp b/eeschema/sch_sheet.cpp index 7f06a248b0..8b2081ca37 100644 --- a/eeschema/sch_sheet.cpp +++ b/eeschema/sch_sheet.cpp @@ -297,7 +297,7 @@ bool SCH_SHEET::ResolveTextVar( const SCH_SHEET_PATH* aPath, wxString* token, in { sheetPath.pop_back(); - if( sheetPath.Last()->ResolveTextVar( aPath, token, aDepth + 1 ) ) + if( sheetPath.Last()->ResolveTextVar( &sheetPath, token, aDepth + 1 ) ) return true; } else