From fb881ee209bd5e67c8371059df0bf11a0c53aa4c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 8 Jul 2019 22:55:42 +0100 Subject: [PATCH] Update symbol ID before running Update Fields from Library. Fixes: lp:1827707 * https://bugs.launchpad.net/kicad/+bug/1827707 --- eeschema/dialogs/dialog_edit_component_in_schematic.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp index 0491c3ec33..1d7a2b954d 100644 --- a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp +++ b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp @@ -639,6 +639,10 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::UpdateFieldsFromLibrary( wxCommandEvent SCH_COMPONENT copy( *m_cmp ); copy.SetFields( *m_fields ); + LIB_ID id; + id.Parse( m_libraryNameTextCtrl->GetValue(), LIB_ID::ID_SCH, true ); + copy.SetLibId( id, Prj().SchSymbolLibTable(), Prj().SchLibs()->GetCacheLibrary() ); + // Update the requested fields in the component copy std::list components; components.push_back( © );