trying to reduce the imporantance of field ids for user defined fields in eeschema

This commit is contained in:
Dick Hollenbeck 2010-07-31 12:20:34 -05:00
parent 43d7b7237e
commit 81bcc8d73a
1 changed files with 4 additions and 1 deletions

View File

@ -714,7 +714,10 @@ int ReadPartDescr( wxWindow* frame, char* Line, FILE* f, wxString& aMsgDiag,
fieldNdx = component->GetFieldCount(); // new has this index after insertion
SCH_FIELD field( wxPoint( 0, 0 ), fieldNdx, component, fieldName );
SCH_FIELD field( wxPoint( 0, 0 ),
-1, // field id is not relavant for user defined fields
component, fieldName );
component->AddField( field );
}
else