Use the right path for recursing in text var resolution
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14720
This commit is contained in:
parent
dd8dc4e513
commit
3686c5b371
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue