From e61f95ea78cdc6a14fc4da9c84bd1dbf286ba38f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 29 Jan 2009 12:51:38 +0000 Subject: [PATCH] don't crash if we have no accelerators for the "Window" menu items git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/mdi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 0a72ab2..7ea3a70 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -732,7 +732,7 @@ bool wxMDIParentFrame::MSWTranslateMessage(WXMSG* msg) // but it doesn't check for the (custom) accelerators of the window menu // items as it's not part of the menu bar as it's handled by Windows itself // so we need to do this explicitly - if ( m_accelWindowMenu->Translate(this, msg) ) + if ( m_accelWindowMenu && m_accelWindowMenu->Translate(this, msg) ) return true; #endif // wxUSE_MENUS && wxUSE_ACCEL -- 2.7.4