]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/checkbox_osx.cpp
Don't add margins for buttons with text and images by default in wxMSW.
[wxWidgets.git] / src / osx / checkbox_osx.cpp
index f248aff651193072420831c28b1dfee617f02049..3a7283396173620966edd95d658307ae49493628 100644 (file)
@@ -16,7 +16,6 @@
 #include "wx/checkbox.h"
 #include "wx/osx/private.h"
 
-IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
 
 // Single check box item
@@ -36,6 +35,7 @@ bool wxCheckBox::Create(wxWindow *parent,
 
     m_labelOrig = m_label = label ;
 
+    WXValidateStyle( &style );
     m_peer = wxWidgetImpl::CreateCheckBox( this, parent, id, label, pos, size, style, GetExtraStyle() ) ;
 
     MacPostControlCreate(pos, size) ;