From d7dbc98ae97946a3d91e6653527fc72276d83712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ball=C3=BCder?= Date: Thu, 13 May 1999 13:02:09 +0000 Subject: [PATCH] Fixed a minor bug in hotKey handling. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/menu.cpp | 7 +++++-- src/gtk1/menu.cpp | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index f5662e116a..6907fe1d68 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -500,8 +500,11 @@ void wxMenuItem::SetName( const wxString& str ) /* only GTK 1.2 know about hot keys */ m_hotKey = _T(""); #if (GTK_MINOR_VERSION > 0) - pc++; - m_hotKey = pc; + if(*pc == _T('\t')) + { + pc++; + m_hotKey = pc; + } #endif if (m_menuItem) diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index f5662e116a..6907fe1d68 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -500,8 +500,11 @@ void wxMenuItem::SetName( const wxString& str ) /* only GTK 1.2 know about hot keys */ m_hotKey = _T(""); #if (GTK_MINOR_VERSION > 0) - pc++; - m_hotKey = pc; + if(*pc == _T('\t')) + { + pc++; + m_hotKey = pc; + } #endif if (m_menuItem)