diff --git a/common/tool/action_menu.cpp b/common/tool/action_menu.cpp index 25cd988637..945a09e1a3 100644 --- a/common/tool/action_menu.cpp +++ b/common/tool/action_menu.cpp @@ -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; }