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:
parent
ac9d5e9574
commit
25dff19c97
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user