]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/spinctrl.cpp
Put the page in the event for all event types
[wxWidgets.git] / src / os2 / spinctrl.cpp
index 8c2735901ef9b6ba91f8dceeea7e244240134bb4..2fa04e704975bcbb73591d6ac5d9f1d592d9b038 100644 (file)
@@ -337,8 +337,8 @@ int wxSpinCtrl::GetValue() const
                                ,SPBQ_UPDATEIFVALID
                               )
                 );
-    lVal - atol(zVal);
-    return lVal;
+    lVal = atol(zVal);
+    return (int)lVal;
 } // end of wxSpinCtrl::GetValue
 
 void wxSpinCtrl::OnChar (
@@ -488,4 +488,4 @@ bool wxSpinCtrl::Show(
     return TRUE;
 } // end of wxSpinCtrl::Show
 
-#endif //wxUSE_SPINBTN
\ No newline at end of file
+#endif //wxUSE_SPINBTN