forked from enlightenment/efl
efl_ui_spin_button: lets support floating point numbers
Summary: this was a int ... cutting of the floating point digits. Now it works. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10977
This commit is contained in:
parent
cdb21cd30d
commit
97ffbe1f12
|
@ -406,7 +406,7 @@ _spin_value(Efl_Ui_Spin *obj, Eina_Bool inc)
|
|||
{
|
||||
Efl_Ui_Spin_Button_Data *pd = efl_data_scope_get(obj, EFL_UI_SPIN_BUTTON_CLASS);
|
||||
|
||||
int absolut_value = efl_ui_range_value_get(obj) + (inc ? pd->step : -pd->step);
|
||||
double absolut_value = efl_ui_range_value_get(obj) + (inc ? pd->step : -pd->step);
|
||||
|
||||
_value_set(obj, absolut_value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue