]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed small prob with wxSpinButton orientation.
authorRobert Roebling <robert@roebling.de>
Mon, 16 Jul 2001 07:38:44 +0000 (07:38 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 16 Jul 2001 07:38:44 +0000 (07:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/spinbutt.cpp
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,
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,