From: Robert Roebling Date: Sat, 23 Sep 2006 09:00:17 +0000 (+0000) Subject: Reset m_oldValue of after ::SetValue(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/25dff19c97d1b37c364ef89554840dfeb6217c2b Reset m_oldValue of after ::SetValue(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index 8f4bd81c89..14bdda9ae0 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -449,6 +449,8 @@ void wxSpinCtrl::SetValue(int val) // current value in the control, so do it manually ::SetWindowText(GetBuddyHwnd(), wxString::Format(_T("%d"), val)); } + + m_oldValue = GetValue(); } int wxSpinCtrl::GetValue() const