From 1af503509df7661f3e182f47c81f0e73b5aab1ad Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Mon, 17 Feb 2020 08:27:51 -0500 Subject: [PATCH] Fix s-expression symbol library formatter build issue. --- eeschema/sch_sexpr_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_sexpr_plugin.cpp b/eeschema/sch_sexpr_plugin.cpp index 8568cb1c30..c88449b59e 100644 --- a/eeschema/sch_sexpr_plugin.cpp +++ b/eeschema/sch_sexpr_plugin.cpp @@ -962,7 +962,7 @@ LIB_PART* SCH_SEXPR_PLUGIN_CACHE::removeSymbol( LIB_PART* aPart ) { LIB_FIELD& field = static_cast( 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.