From 25dff19c97d1b37c364ef89554840dfeb6217c2b Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 23 Sep 2006 09:00:17 +0000 Subject: [PATCH] Reset m_oldValue of after ::SetValue(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/spinctrl.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.45.2