Marco Mattila 2010-08-29 11:09:07 -05:00 committed by Dick Hollenbeck
parent 347b29bb41
commit 356835c87f
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::InitBuffers( SCH_COMPONENT* aComponent
for( TEMPLATE_FIELDNAMES::const_iterator it = tfnames.begin(); it!=tfnames.end(); ++it ) for( TEMPLATE_FIELDNAMES::const_iterator it = tfnames.begin(); it!=tfnames.end(); ++it )
{ {
// add a new field unconditionally to the UI only // add a new field unconditionally to the UI only
SCH_FIELD fld( wxPoint(0,0), -1 /* id is a relic */, NULL, it->m_Name ); SCH_FIELD fld( wxPoint(0,0), -1 /* id is a relic */, m_Cmp, it->m_Name );
// See if field by same name already exists in component. // See if field by same name already exists in component.
SCH_FIELD* schField = aComponent->FindField( it->m_Name ); SCH_FIELD* schField = aComponent->FindField( it->m_Name );