X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43524b1583cbe798351fef03242f0990e1cfddc2..69a5bc231ac8112dcce8947c020add2d34c1be61:/src/mac/carbon/spinbutt.cpp

diff --git a/src/mac/carbon/spinbutt.cpp b/src/mac/carbon/spinbutt.cpp
index 560ab64352..55de645d54 100644
--- a/src/mac/carbon/spinbutt.cpp
+++ b/src/mac/carbon/spinbutt.cpp
@@ -124,6 +124,11 @@ void wxSpinButton::MacHandleValueChanged( int inc )
     else
         scrollEvent = wxEVT_SCROLL_THUMBTRACK;
 
+    // Do not send an event if the value has not actually changed
+    // (Also works for wxSpinCtrl)
+    if ( m_value == oldValue )
+        return;
+
     wxSpinEvent event( scrollEvent, m_windowId );
 
     event.SetPosition( m_value );