From 92432aa11122b338d86fc4ac1aee5ea76c696d9a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 19 May 2002 08:00:34 +0000 Subject: [PATCH] corrected direction when sending events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/spinbutt.cpp | 4 ++-- src/mac/spinbutt.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mac/carbon/spinbutt.cpp b/src/mac/carbon/spinbutt.cpp index a647fbef1f..fd9d5d4e47 100644 --- a/src/mac/carbon/spinbutt.cpp +++ b/src/mac/carbon/spinbutt.cpp @@ -118,9 +118,9 @@ void wxSpinButton::MacHandleValueChanged( int inc ) m_value = m_max; } - if ( oldValue - m_value == -1 ) + if ( m_value - oldValue == -1 ) scrollEvent = wxEVT_SCROLL_LINEDOWN ; - else if ( oldValue - m_value == 1 ) + else if ( m_value - oldValue == 1 ) scrollEvent = wxEVT_SCROLL_LINEUP ; else scrollEvent = wxEVT_SCROLL_THUMBTRACK ; diff --git a/src/mac/spinbutt.cpp b/src/mac/spinbutt.cpp index a647fbef1f..fd9d5d4e47 100644 --- a/src/mac/spinbutt.cpp +++ b/src/mac/spinbutt.cpp @@ -118,9 +118,9 @@ void wxSpinButton::MacHandleValueChanged( int inc ) m_value = m_max; } - if ( oldValue - m_value == -1 ) + if ( m_value - oldValue == -1 ) scrollEvent = wxEVT_SCROLL_LINEDOWN ; - else if ( oldValue - m_value == 1 ) + else if ( m_value - oldValue == 1 ) scrollEvent = wxEVT_SCROLL_LINEUP ; else scrollEvent = wxEVT_SCROLL_THUMBTRACK ; -- 2.45.2