CONTEXT_MENU: null pointer check bugfix.
This commit is contained in:
parent
c3759d870c
commit
660d4cc6c9
|
@ -47,6 +47,7 @@ public:
|
||||||
else if( type == wxEVT_COMMAND_MENU_SELECTED )
|
else if( type == wxEVT_COMMAND_MENU_SELECTED )
|
||||||
evt = TOOL_EVENT( TC_Command, TA_ContextMenuChoice, aEvent.GetId() );
|
evt = TOOL_EVENT( TC_Command, TA_ContextMenuChoice, aEvent.GetId() );
|
||||||
|
|
||||||
|
if(m_menu->m_tool)
|
||||||
m_menu->m_tool->GetManager()->ProcessEvent( evt );
|
m_menu->m_tool->GetManager()->ProcessEvent( evt );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue