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();