]> git.saurik.com Git - wxWidgets.git/commitdiff
wxSpinCtrl::SetIncrement is supposed to take an int, not a double
authorPaul Cornett <paulcor@bullseye.com>
Tue, 10 Nov 2009 17:12:36 +0000 (17:12 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 10 Nov 2009 17:12:36 +0000 (17:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/spinctlg.h
include/wx/gtk/spinctrl.h

index 83e529d2f548f15d3d0da7ad094fe48da617db33..9c18c06a6b2cd79722cb81beb83b78f5a676f3f3 100644 (file)
@@ -275,12 +275,11 @@ public:
         { wxSpinCtrlGenericBase::SetValue(value); }
     void SetValue( int value )              { DoSetValue(value); }
     void SetRange( int minVal, int maxVal ) { DoSetRange(minVal, maxVal); }
-    void SetIncrement( double inc )         { DoSetIncrement(inc); }
+    void SetIncrement(int inc) { DoSetIncrement(inc); }
 
 protected:
     virtual void DoSendEvent();
 
-private:
     DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
 };
 
@@ -344,7 +343,6 @@ protected:
 
     unsigned m_digits;
 
-private:
     DECLARE_DYNAMIC_CLASS(wxSpinCtrlDouble)
 };
 
index 53649b59ec9967ecc1e7c8f88f6ba090c89a830d..39dc35089b6af8a00b0c08d96340670651882c10 100644 (file)
@@ -126,7 +126,7 @@ public:
     void SetValue(const wxString& value)    { wxSpinCtrlGTKBase::SetValue(value); } // visibility problem w/ gcc
     void SetValue( int value )              { DoSetValue(value); }
     void SetRange( int minVal, int maxVal ) { DoSetRange(minVal, maxVal); }
-    void SetIncrement( double inc )         { DoSetIncrement(inc); }
+    void SetIncrement(int inc) { DoSetIncrement(inc); }
 
     DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
 };