]> git.saurik.com Git - wxWidgets.git/commitdiff
Do not send a changed event if a button is clicked for down/up when the control is...
authorKevin Hock <hockkn@yahoo.com>
Wed, 18 Oct 2006 00:06:55 +0000 (00:06 +0000)
committerKevin Hock <hockkn@yahoo.com>
Wed, 18 Oct 2006 00:06:55 +0000 (00:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/spinbutt.cpp

index 560ab64352f4920b9ef3c8186c2352d0399d68c6..55de645d54390cfada5f3f070d763e14352b052e 100644 (file)
@@ -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 );