From b012cc1ac3d54cb0d6f1b480809fab830de64197 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 15 Oct 2022 15:53:33 +0100 Subject: [PATCH] Don't resolve footprint text variables in footprint editor. Fixes https://gitlab.com/kicad/code/kicad/issues/12658 --- pcbnew/footprint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index 01cb96258d..617412ed09 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -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 );