From: Robert Roebling Date: Mon, 16 Jul 2001 07:38:44 +0000 (+0000) Subject: Fixed small prob with wxSpinButton orientation. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d9e47578e62bf9d013a27e2951e258c333b0ad2 Fixed small prob with wxSpinButton orientation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/spinbutt.cpp b/src/mac/carbon/spinbutt.cpp index fc4e5e5888..283d6bc262 100644 --- a/src/mac/carbon/spinbutt.cpp +++ b/src/mac/carbon/spinbutt.cpp @@ -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, diff --git a/src/mac/spinbutt.cpp b/src/mac/spinbutt.cpp index fc4e5e5888..283d6bc262 100644 --- a/src/mac/spinbutt.cpp +++ b/src/mac/spinbutt.cpp @@ -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,