From 4cfff6b35d8a848b2e26370611ea580c14e82a1e Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 22 May 2020 09:01:29 +0200 Subject: [PATCH] Libedit: fix crash when right clicking. Fixes #4511 https://gitlab.com/kicad/code/kicad/issues/4511 --- eeschema/tools/ee_selection_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index f27d9ce9ec..ce62293566 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -177,7 +177,7 @@ bool EE_SELECTION_TOOL::Init() auto havePartCondition = [&]( const SELECTION& sel ) { - return m_isLibEdit && libEditFrame->GetCurPart(); + return m_isLibEdit && static_cast( m_frame )->GetCurPart(); }; auto& menu = m_menu.GetMenu();