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:
parent
f02cd717bc
commit
411bcc58c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue