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
This commit is contained in:
Václav Slavík 2002-02-12 10:37:45 +00:00
parent 92657b4276
commit 3dbe38c370

View File

@ -409,8 +409,8 @@ void wxFrameBase::AttachMenuBar(wxMenuBar *menubar)
{
if ( menubar )
{
m_frameMenuBar = menubar;
menubar->Attach((wxFrame *)this);
m_frameMenuBar = menubar;
}
}