Use the right path for recursing in text var resolution

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14720


(cherry picked from commit 3686c5b371)
This commit is contained in:
Jon Evans 2023-05-10 21:46:05 -04:00
parent f02cd717bc
commit 411bcc58c5
1 changed files with 1 additions and 1 deletions

View File

@ -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