]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinctrl.cpp
adding command key accelerator
[wxWidgets.git] / src / msw / spinctrl.cpp
index 67083e3f1e7a5c74f9e6c229e659663df9c4f1ae..16c1f39b1e1a017529f944eba7e14b4ab42ff41b 100644 (file)
@@ -253,8 +253,8 @@ void wxSpinCtrl::OnChar(wxKeyEvent& event)
 
 void wxSpinCtrl::OnKillFocus(wxFocusEvent& 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();
 }
 
     event.Skip();
 }