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