X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfddb9239fcc64dec73eeac9ddc1805ca3904b62..0425151023593cb31da0ee0a652da173ca9abfde:/src/cocoa/slider.mm diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index f239be1003..7e319e4844 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -9,6 +9,9 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#include "wx/setup.h" +#if wxUSE_SLIDER + #include "wx/app.h" #include "wx/slider.h" @@ -35,7 +38,6 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid, wxSlider::~wxSlider() { - CocoaRemoveFromParent(); - SetNSView(NULL); } +#endif // wxUSE_SLIDER