X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ca3c231fbc905b8e7dbd466c9f645305842ba57..119a78753d60ee80d2a95323d66bb1c7f2cc0b6b:/src/msw/spinctrl.cpp diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index 67083e3f1e..16c1f39b1e 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -253,8 +253,8 @@ void wxSpinCtrl::OnChar(wxKeyEvent& event) void wxSpinCtrl::OnKillFocus(wxFocusEvent& event) { - // ensure that the value is shown correctly - SetValue(GetValue()) ; + // ensure that a correct value is shown by the control + NormalizeValue(); event.Skip(); }