From d8034b9c1585241b375bf9c5d9c327953ce6953c Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 23 Jun 2023 17:28:16 +0200 Subject: [PATCH] Revert "PCB Fields: save untranslated names" This reverts commit b47fcac6669155aca655e4b64c5c12521e1167fe. The root issue was a bug in SCH_FIELD::GetCanonicalName(), now fixed. --- pcbnew/plugins/kicad/pcb_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/plugins/kicad/pcb_plugin.cpp b/pcbnew/plugins/kicad/pcb_plugin.cpp index c240c7cc39..7e8c08e4b4 100644 --- a/pcbnew/plugins/kicad/pcb_plugin.cpp +++ b/pcbnew/plugins/kicad/pcb_plugin.cpp @@ -1125,7 +1125,7 @@ void PCB_PLUGIN::format( const FOOTPRINT* aFootprint, int aNestLevel ) const for( const PCB_FIELD* field : aFootprint->GetFields() ) { m_out->Print( aNestLevel + 1, "(property %s %s", - m_out->Quotew( field->GetName() ).c_str(), + m_out->Quotew( field->GetCanonicalName() ).c_str(), m_out->Quotew( field->GetText() ).c_str() ); format( field, aNestLevel + 1 );