Fix segfault when getting mouse position

This commit is contained in:
Seth Hillbrand 2019-10-04 07:58:32 -07:00
parent 0ad9ddb3a6
commit 4302bc2562
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}