From 3dbe38c3700099a9c3d8423131eff0a8f394a0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 12 Feb 2002 10:37:45 +0000 Subject: [PATCH] fixed menubar attaching: create it first, THEN set pointer to it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/framecmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index 544189a24c..8bc2ffb5db 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -409,8 +409,8 @@ void wxFrameBase::AttachMenuBar(wxMenuBar *menubar) { if ( menubar ) { - m_frameMenuBar = menubar; menubar->Attach((wxFrame *)this); + m_frameMenuBar = menubar; } }