* Fix Bug 1219239 - EESCHEMA crashes when editing a template field in libedit through the context menu

This commit is contained in:
Brian Sidebotham 2013-08-31 16:53:46 +01:00
parent 51eaeccf03
commit b6110bfcc3
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers()
// add a new field unconditionally to the UI only for this template fieldname
// field id must not be in range 0 - MANDATORY_FIELDS, set before saving to disk
LIB_FIELD fld(-1);
LIB_FIELD fld( m_libEntry, -1 );
// See if field by same name already exists in component.
LIB_FIELD* libField = findfield( cmpFields, it->m_Name );