Reset m_oldValue of after ::SetValue().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-09-23 09:00:17 +00:00
parent ac9d5e9574
commit 25dff19c97

View 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