Eeschema: fix crash when resetting schematic symbol fields from library.
Fixes https://gitlab.com/kicad/code/kicad/issues/4336
This commit is contained in:
parent
c43122a45f
commit
d0c3c11e59
|
@ -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<SCH_COMPONENT*> components;
|
||||
|
|
Loading…
Reference in New Issue