X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d656ea93c0f3d53f97a1c67244baa39d72b7334..cc6dd35581586950ebcf7ef4493166001ec5a645:/src/cocoa/statbox.mm?ds=sidebyside diff --git a/src/cocoa/statbox.mm b/src/cocoa/statbox.mm index 00a22bc123..7e6e457e7e 100644 --- a/src/cocoa/statbox.mm +++ b/src/cocoa/statbox.mm @@ -9,8 +9,11 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#include "wx/app.h" -#include "wx/statbox.h" +#include "wx/wxprec.h" +#ifndef WX_PRECOMP + #include "wx/app.h" + #include "wx/statbox.h" +#endif //WX_PRECOMP #include "wx/cocoa/autorelease.h" @@ -44,7 +47,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid, wxStaticBox::~wxStaticBox() { - DisassociateNSBox(m_cocoaNSView); + DisassociateNSBox(GetNSBox()); } void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const