Use the right path for recursing in text var resolution

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14720
This commit is contained in:
Jon Evans 2023-05-10 21:46:05 -04:00
parent dd8dc4e513
commit 3686c5b371
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,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