]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/spinbutt.cpp
corrected dynamic class implementation
[wxWidgets.git] / src / mac / spinbutt.cpp
index fc4e5e588852d3e193f2af9dfcc2378b0f01df7d..283d6bc262c0decc60045f8f4a652c6d544922ab 100644 (file)
@@ -161,7 +161,7 @@ void wxSpinButton::MacHandleControlClick( ControlHandle control , SInt16 control
 
 wxSize wxSpinButton::DoGetBestSize() const
 {
-    if ( (GetWindowStyle() & wxSP_VERTICAL) != 0 )
+    if ( (GetWindowStyle() & wxSP_HORIZONTAL) == 0 )
     {
         // vertical control
         return wxSize(16,