Don't resolve footprint text variables in footprint editor.

Fixes https://gitlab.com/kicad/code/kicad/issues/12658
This commit is contained in:
Jeff Young 2022-10-15 15:53:33 +01:00
parent 0d7185c2ff
commit b012cc1ac3
1 changed files with 3 additions and 0 deletions

View File

@ -480,6 +480,9 @@ void FOOTPRINT::GetContextualTextVars( wxArrayString* aVars ) const
bool FOOTPRINT::ResolveTextVar( wxString* token, int aDepth ) const
{
if( GetBoard() && GetBoard()->GetBoardUse() == BOARD_USE::FPHOLDER )
return false;
if( token->IsSameAs( wxT( "REFERENCE" ) ) )
{
*token = m_reference->GetShownText( aDepth + 1 );