This is a workaround for a deeper compatibility problem in Cocoa
implementation (see the bug for detailed discussion), but for now, this
simple workaround is much better than not doing nothing.
See #13888.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72164
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_isInside = false;
m_toolbar = NULL;
- toolbar->Realize();
-
if (m_parentAsWindow && !GetBool(wxT("dontattachtoframe")))
{
wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);
parentFrame->SetToolBar(toolbar);
}
+ toolbar->Realize();
+
return toolbar;
}
}