From: Vadim Zeitlin Date: Wed, 29 Sep 2010 13:46:14 +0000 (+0000) Subject: Fix wrong return value of wxGTK wxSpinCtrlDouble::GetIncrement(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/63fb6907346c40b1d174a188e919c1bc3eb5094e Fix wrong return value of wxGTK wxSpinCtrlDouble::GetIncrement(). Due to confusion in gtk_spin_button_get_increments() parameters order the page size was returned instead of the increment. See #12342. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/spinctrl.cpp b/src/gtk/spinctrl.cpp index 6ba4071d28..2d48ca16dc 100644 --- a/src/gtk/spinctrl.cpp +++ b/src/gtk/spinctrl.cpp @@ -185,7 +185,7 @@ double wxSpinCtrlGTKBase::DoGetIncrement() const wxCHECK_MSG( (m_widget != NULL), 0, wxT("invalid spin button") ); double inc = 0; - gtk_spin_button_get_increments( GTK_SPIN_BUTTON(m_widget), NULL, &inc); + gtk_spin_button_get_increments( GTK_SPIN_BUTTON(m_widget), &inc, NULL); return inc; }