no real changes; just a very minor cleanup in wxFrame::MSWTranslateMessage()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-01-23 15:43:26 +00:00
parent 5b07594ad3
commit a1a1ca8998

View File

@@ -734,14 +734,14 @@ bool wxFrame::MSWTranslateMessage(WXMSG* pMsg)
#if wxUSE_MENUS && wxUSE_ACCEL && !defined(__WXUNIVERSAL__)
// try the menu bar accels
wxMenuBar *menuBar = GetMenuBar();
if ( !menuBar )
return false;
const wxAcceleratorTable& acceleratorTable = menuBar->GetAccelTable();
return acceleratorTable.Translate(this, pMsg);
#else
return false;
if ( menuBar )
{
const wxAcceleratorTable& acceleratorTable = menuBar->GetAccelTable();
return acceleratorTable.Translate(this, pMsg);
}
#endif // wxUSE_MENUS && wxUSE_ACCEL
return false;
}
// ---------------------------------------------------------------------------