Don't use GetValueFieldText from within text var resolution.

(It resets the recursion checker.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14815

(cherry picked from commit 5114d3b8c3)
This commit is contained in:
Jeff Young 2023-05-25 14:33:39 +01:00
parent 42811d0602
commit f0d205fed9
1 changed files with 0 additions and 4 deletions

View File

@ -1179,10 +1179,6 @@ bool SCH_SYMBOL::ResolveTextVar( wxString* token, int aDepth, const SCH_SHEET_PA
{
if( i == REFERENCE_FIELD )
*token = GetRef( &schematic->CurrentSheet(), true );
else if( i == VALUE_FIELD )
*token = GetValueFieldText( true, aPath, false );
else if( i == FOOTPRINT_FIELD )
*token = GetFootprintFieldText( true, aPath, false );
else
*token = m_fields[ i ].GetShownText( aPath, false, aDepth + 1 );