Browse Source

Libedit: fix crash when right clicking.

Fixes #4511
https://gitlab.com/kicad/code/kicad/issues/4511
pull/16/head
jean-pierre charras 5 years ago
parent
commit
4cfff6b35d
  1. 2
      eeschema/tools/ee_selection_tool.cpp

2
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<LIB_EDIT_FRAME*>( m_frame )->GetCurPart();
};
auto& menu = m_menu.GetMenu();

Loading…
Cancel
Save