Fix segfault when getting mouse position
This commit is contained in:
parent
0ad9ddb3a6
commit
4302bc2562
|
@ -367,7 +367,7 @@ void ACTION_MENU::OnMenuEvent( wxMenuEvent& aEvent )
|
|||
|
||||
// Don't update the position if this menu has a parent
|
||||
if( !parent && m_tool )
|
||||
g_menu_open_position = getToolManager()->GetViewControls()->GetMousePosition();
|
||||
g_menu_open_position = getToolManager()->GetMousePosition();
|
||||
|
||||
g_last_menu_highlighted_id = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue