Fix s-expression symbol library formatter build issue.

This commit is contained in:
Wayne Stambaugh 2020-02-17 08:27:51 -05:00
parent 1d205e4442
commit 1af503509d
1 changed files with 2 additions and 2 deletions

View File

@ -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.