Fixed a minor bug in hotKey handling.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-05-13 13:02:09 +00:00
parent d9904e2f43
commit d7dbc98ae9
2 changed files with 10 additions and 4 deletions

View File

@ -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)

View File

@ -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)