diff --git a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp index c4939ed21e..9fea5b5d20 100644 --- a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp +++ b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp @@ -692,7 +692,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::UpdateFieldsFromLibrary( wxCommandEvent return; } - m_cmp->SetLibSymbol( new LIB_PART( *libSymbol ) ); + copy.SetLibSymbol( libSymbol->Flatten().release() ); // Update the requested fields in the component copy std::list components;