From e6c20adc5aa87ecedfd1fbba7f2bc7902cf21458 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 26 Sep 2013 14:29:47 +0200 Subject: [PATCH] Fixed premature highlighting of options in CONTEXT_MENU. --- common/tool/context_menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/tool/context_menu.cpp b/common/tool/context_menu.cpp index 281a083df0..1751bde93b 100644 --- a/common/tool/context_menu.cpp +++ b/common/tool/context_menu.cpp @@ -37,7 +37,7 @@ CONTEXT_MENU::CONTEXT_MENU() : NULL, &m_handler ); // Workaround for the case when mouse cursor never reaches menu (it hangs up tools using menu) - wxMenuEvent menuEvent( wxEVT_MENU_HIGHLIGHT, 0, &m_menu ); + wxMenuEvent menuEvent( wxEVT_MENU_HIGHLIGHT, -1, &m_menu ); m_menu.AddPendingEvent( menuEvent ); } @@ -51,7 +51,7 @@ CONTEXT_MENU::CONTEXT_MENU( const CONTEXT_MENU& aMenu ) : NULL, &m_handler ); // Workaround for the case when mouse cursor never reaches menu (it hangs up tools using menu) - wxMenuEvent menuEvent( wxEVT_MENU_HIGHLIGHT, 0, &m_menu ); + wxMenuEvent menuEvent( wxEVT_MENU_HIGHLIGHT, -1, &m_menu ); m_menu.AddPendingEvent( menuEvent ); // Copy all the menu entries