X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8cd6a9ad50c00a94e62558a3b55e814028d81100..51181d291194b7ae616cfb17c984fd8927e4a977:/include/wx/gtk/spinctrl.h?ds=sidebyside diff --git a/include/wx/gtk/spinctrl.h b/include/wx/gtk/spinctrl.h index da0fd6c8ce..2cc0254253 100644 --- a/include/wx/gtk/spinctrl.h +++ b/include/wx/gtk/spinctrl.h @@ -121,10 +121,10 @@ public: } // accessors - int GetValue() const { return int(DoGetValue() + 0.5); } - int GetMin() const { return int(DoGetMin() + 0.5); } - int GetMax() const { return int(DoGetMax() + 0.5); } - int GetIncrement() const { return int(DoGetIncrement() + 0.5); } + int GetValue() const { return wxRound( DoGetValue() ); } + int GetMin() const { return wxRound( DoGetMin() ); } + int GetMax() const { return wxRound( DoGetMax() ); } + int GetIncrement() const { return wxRound( DoGetIncrement() ); } // operations void SetValue(const wxString& value) { wxSpinCtrlGTKBase::SetValue(value); } // visibility problem w/ gcc