Don't free part before removing from view.

This commit is contained in:
Jeff Young 2020-12-07 17:02:47 +00:00
parent dde87b2f45
commit 222158e954
1 changed files with 1 additions and 0 deletions

View File

@ -965,6 +965,7 @@ void LIB_EDIT_FRAME::SetCurPart( LIB_PART* aPart )
return;
GetScreen()->SetCurItem( nullptr );
GetCanvas()->GetView()->Clear();
if( m_my_part != aPart )
{