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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user