From 222158e954457299dcb47c392070c0a63bb88932 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 7 Dec 2020 17:02:47 +0000 Subject: [PATCH] Don't free part before removing from view. --- eeschema/libedit/lib_edit_frame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/libedit/lib_edit_frame.cpp b/eeschema/libedit/lib_edit_frame.cpp index 13c7c10f2e..e193358684 100644 --- a/eeschema/libedit/lib_edit_frame.cpp +++ b/eeschema/libedit/lib_edit_frame.cpp @@ -965,6 +965,7 @@ void LIB_EDIT_FRAME::SetCurPart( LIB_PART* aPart ) return; GetScreen()->SetCurItem( nullptr ); + GetCanvas()->GetView()->Clear(); if( m_my_part != aPart ) {