CONTEXT_MENU: null pointer check bugfix.

parent c3759d87
......@@ -47,7 +47,8 @@ public:
else if( type == wxEVT_COMMAND_MENU_SELECTED )
evt = TOOL_EVENT( TC_Command, TA_ContextMenuChoice, aEvent.GetId() );
m_menu->m_tool->GetManager()->ProcessEvent( evt );
if(m_menu->m_tool)
m_menu->m_tool->GetManager()->ProcessEvent( evt );
}
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment