Some clean-up from last merge.

This commit is contained in:
Jeff Young 2020-05-06 16:55:37 +01:00
parent 528ebf8d7d
commit d0217e38cd
1 changed files with 2 additions and 9 deletions

View File

@ -1017,16 +1017,9 @@ void SCH_SEXPR_PLUGIN::saveSheet( SCH_SHEET* aSheet, int aNestLevel )
m_fieldId = SHEET_MANDATORY_FIELDS;
for( const SCH_FIELD& field : aSheet->GetFields() )
for( SCH_FIELD& field : aSheet->GetFields() )
{
SCH_FIELD tmp = field;
if( field.GetId() == SHEETNAME )
tmp.SetName( "ki_sheet_name" );
else if( field.GetId() == SHEETFILENAME )
tmp.SetName( "ki_sheet_file" );
saveField( &tmp, aNestLevel + 1 );
saveField( &field, aNestLevel + 1 );
}
for( const SCH_SHEET_PIN* pin : aSheet->GetPins() )