Browse Source

Fix s-expression symbol library formatter build issue.

pull/16/head
Wayne Stambaugh 6 years ago
parent
commit
1af503509d
  1. 4
      eeschema/sch_sexpr_plugin.cpp

4
eeschema/sch_sexpr_plugin.cpp

@ -962,7 +962,7 @@ LIB_PART* SCH_SEXPR_PLUGIN_CACHE::removeSymbol( LIB_PART* aPart )
{
LIB_FIELD& field = static_cast<LIB_FIELD&>( drawItem );
if( firstChild->FindField( field.GetName() ) )
if( firstChild->FindField( field.GetName( NATIVE_FIELD_NAME ) ) )
continue;
}
@ -1538,7 +1538,7 @@ void SCH_SEXPR_PLUGIN_CACHE::saveField( LIB_FIELD* aField,
{
wxCHECK_RET( aField && aField->Type() == LIB_FIELD_T, "Invalid LIB_FIELD object." );
wxString fieldName = aField->GetName();
wxString fieldName = aField->GetName( NATIVE_FIELD_NAME );
// When saving legacy fields, prefix the field name with "ki_" to prevent name clashes
// with exisiting user defined fields.

Loading…
Cancel
Save