From df80f6484eae94a360305a19d6d0994a0af6fd92 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 27 Jan 2021 11:15:35 +0000 Subject: [PATCH] Use canonical names when exporting fields to netlist. Fixes https://gitlab.com/kicad/code/kicad/issues/7300 --- eeschema/netlist_exporters/netlist_exporter_xml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/netlist_exporters/netlist_exporter_xml.cpp b/eeschema/netlist_exporters/netlist_exporter_xml.cpp index cebab0c838..26655fd334 100644 --- a/eeschema/netlist_exporters/netlist_exporter_xml.cpp +++ b/eeschema/netlist_exporters/netlist_exporter_xml.cpp @@ -295,14 +295,14 @@ XNODE* NETLIST_EXPORTER_XML::makeSymbols( unsigned aCtl ) for( size_t jj = MANDATORY_FIELDS; jj < fields.size(); ++jj ) { xcomp->AddChild( xproperty = node( "property" ) ); - xproperty->AddAttribute( "name", fields[jj].GetName() ); + xproperty->AddAttribute( "name", fields[jj].GetCanonicalName() ); xproperty->AddAttribute( "value", fields[jj].GetText() ); } for( const SCH_FIELD& sheetField : sheet.Last()->GetFields() ) { xcomp->AddChild( xproperty = node( "property" ) ); - xproperty->AddAttribute( "name", sheetField.GetName() ); + xproperty->AddAttribute( "name", sheetField.GetCanonicalName() ); xproperty->AddAttribute( "value", sheetField.GetText() ); }