CONTEXT_MENU: null pointer check bugfix.

This commit is contained in:
tomasz.wlostowski@cern.ch 2013-09-12 11:36:19 +02:00
parent c3759d870c
commit 660d4cc6c9
1 changed files with 2 additions and 1 deletions

View File

@ -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: