Use canonical names when exporting fields to netlist.

Fixes https://gitlab.com/kicad/code/kicad/issues/7300
This commit is contained in:
Jeff Young 2021-01-27 11:15:35 +00:00
parent 6f651d5338
commit df80f6484e
1 changed files with 2 additions and 2 deletions

View File

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