Don't free part before removing from view.
This commit is contained in:
parent
dde87b2f45
commit
222158e954
|
@ -965,6 +965,7 @@ void LIB_EDIT_FRAME::SetCurPart( LIB_PART* aPart )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GetScreen()->SetCurItem( nullptr );
|
GetScreen()->SetCurItem( nullptr );
|
||||||
|
GetCanvas()->GetView()->Clear();
|
||||||
|
|
||||||
if( m_my_part != aPart )
|
if( m_my_part != aPart )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue