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:
Marcel Hollerbach 2019-12-30 11:12:32 -05:00 committed by Mike Blumenkrantz
parent cdb21cd30d
commit 97ffbe1f12
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}