Don't use GetValueFieldText from within text var resolution.
(It resets the recursion checker.) Fixes https://gitlab.com/kicad/code/kicad/-/issues/14815
This commit is contained in:
parent
28b37ad020
commit
5114d3b8c3
|
@ -1250,10 +1250,6 @@ bool SCH_SYMBOL::ResolveTextVar( const SCH_SHEET_PATH* aPath, wxString* token, i
|
||||||
{
|
{
|
||||||
if( i == REFERENCE_FIELD )
|
if( i == REFERENCE_FIELD )
|
||||||
*token = GetRef( aPath, true );
|
*token = GetRef( aPath, true );
|
||||||
else if( i == VALUE_FIELD )
|
|
||||||
*token = GetValueFieldText( true, aPath, false );
|
|
||||||
else if( i == FOOTPRINT_FIELD )
|
|
||||||
*token = GetFootprintFieldText( true, aPath, false );
|
|
||||||
else
|
else
|
||||||
*token = m_fields[ i ].GetShownText( aPath, false, aDepth + 1 );
|
*token = m_fields[ i ].GetShownText( aPath, false, aDepth + 1 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue