diff --git a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp index 2ace8c8ed9..53a38cb00e 100644 --- a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp +++ b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp @@ -640,6 +640,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( © );