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:
Jeff Young 2023-05-25 14:33:39 +01:00
parent 28b37ad020
commit 5114d3b8c3
1 changed files with 0 additions and 4 deletions

View File

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