From 81bcc8d73a545260c3ed51541e889d0d9235736a Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Sat, 31 Jul 2010 12:20:34 -0500 Subject: [PATCH] trying to reduce the imporantance of field ids for user defined fields in eeschema --- eeschema/read_from_file_schematic_items_descriptions.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eeschema/read_from_file_schematic_items_descriptions.cpp b/eeschema/read_from_file_schematic_items_descriptions.cpp index 25f5f41a01..cc3ce2f57f 100644 --- a/eeschema/read_from_file_schematic_items_descriptions.cpp +++ b/eeschema/read_from_file_schematic_items_descriptions.cpp @@ -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