From: Václav Slavík Date: Tue, 12 Feb 2002 10:37:45 +0000 (+0000) Subject: fixed menubar attaching: create it first, THEN set pointer to it X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3dbe38c3700099a9c3d8423131eff0a8f394a0a4 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 --- 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; } }