Libedit: fix crash when right clicking.
Fixes #4511 https://gitlab.com/kicad/code/kicad/issues/4511
This commit is contained in:
parent
f056713ceb
commit
4cfff6b35d
|
@ -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…
Reference in New Issue