X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43524b1583cbe798351fef03242f0990e1cfddc2..7f73c398d5bb0d820520dde635c712b8b7c66634:/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 );