From b6110bfcc3230dbc9baa04347e0598d3d1bd20c8 Mon Sep 17 00:00:00 2001 From: Brian Sidebotham Date: Sat, 31 Aug 2013 16:53:46 +0100 Subject: [PATCH] * Fix Bug 1219239 - EESCHEMA crashes when editing a template field in libedit through the context menu --- eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp b/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp index 19711d3b42..0244c0a406 100644 --- a/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp +++ b/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp @@ -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 );