X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..153107b4021fe0e6c3ad2ed510d3225f138eee83:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 83e529d2f5..41fc00cb1b 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -264,23 +264,21 @@ public: } // accessors - int GetValue(wxSPINCTRL_GETVALUE_FIX) const - { return wxRound( DoGetValue() ); } - int GetMin() const { return wxRound( m_min ); } - int GetMax() const { return wxRound( m_max ); } - int GetIncrement() const { return wxRound( m_increment ); } + int GetValue(wxSPINCTRL_GETVALUE_FIX) const { return int(DoGetValue()); } + int GetMin() const { return int(m_min); } + int GetMax() const { return int(m_max); } + int GetIncrement() const { return int(m_increment); } // operations void SetValue(const wxString& value) { 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 +342,6 @@ protected: unsigned m_digits; -private: DECLARE_DYNAMIC_CLASS(wxSpinCtrlDouble) };