Eeschema: fix crash when resetting schematic symbol fields from library.

Fixes https://gitlab.com/kicad/code/kicad/issues/4336
This commit is contained in:
Wayne Stambaugh 2020-05-06 10:42:50 -04:00
parent c43122a45f
commit d0c3c11e59
1 changed files with 1 additions and 1 deletions

View File

@ -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;