X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdaf613add176525ed8b6cafaf278dfd80f85074..f0adbe0ffd7c1f1d3fd21926092d6fafd4fc47dc:/src/mac/spinbutt.cpp?ds=sidebyside

diff --git a/src/mac/spinbutt.cpp b/src/mac/spinbutt.cpp
index c2b0a7bbc2..283d6bc262 100644
--- a/src/mac/spinbutt.cpp
+++ b/src/mac/spinbutt.cpp
@@ -84,11 +84,6 @@ int wxSpinButton::GetValue() const
 void wxSpinButton::SetValue(int val)
 {
 	m_value = val ;
-  wxScrollEvent event(wxEVT_SCROLL_THUMBTRACK, m_windowId);
-
-  event.SetPosition(m_value);
-  event.SetEventObject( this );
-  GetEventHandler()->ProcessEvent(event);
 }
 
 void wxSpinButton::SetRange(int minVal, int maxVal)
@@ -166,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,