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:
parent
92657b4276
commit
3dbe38c370
@ -409,8 +409,8 @@ void wxFrameBase::AttachMenuBar(wxMenuBar *menubar)
|
||||
{
|
||||
if ( menubar )
|
||||
{
|
||||
m_frameMenuBar = menubar;
|
||||
menubar->Attach((wxFrame *)this);
|
||||
m_frameMenuBar = menubar;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user