]> git.saurik.com Git - wxWidgets.git/commitdiff
Reset m_oldValue of after ::SetValue().
authorRobert Roebling <robert@roebling.de>
Sat, 23 Sep 2006 09:00:17 +0000 (09:00 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 23 Sep 2006 09:00:17 +0000 (09:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/spinctrl.cpp

index 8f4bd81c896034bc9b94088593fc03be62d1f794..14bdda9ae059d05c6383ceaf83cd907167e1c246 100644 (file)
@@ -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