zmike pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=97ffbe1f127041a1831c0692b54ff05ef4643753
commit 97ffbe1f127041a1831c0692b54ff05ef4643753 Author: Marcel Hollerbach <[email protected]> Date: Mon Dec 30 11:12:32 2019 -0500 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 --- src/lib/elementary/efl_ui_spin_button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_spin_button.c b/src/lib/elementary/efl_ui_spin_button.c index 9be21373a1..5ddd1f363a 100644 --- a/src/lib/elementary/efl_ui_spin_button.c +++ b/src/lib/elementary/efl_ui_spin_button.c @@ -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); } --
