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() ); }