From 3b8db1a1ae073d4dae792b94cde279f418469c31 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Wed, 14 Dec 2016 20:31:20 +0900 Subject: [PATCH] [atspi] slider uses max value when atspi tries to set value. Because double type value could be 1.00000000000000022204. Change-Id: Idab1a1f4f57bae61f27511bb1b93a0fbef3aff2f --- src/lib/elm_slider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c index 96ce0a3..78ef839 100644 --- a/src/lib/elm_slider.c +++ b/src/lib/elm_slider.c @@ -1267,8 +1267,8 @@ _elm_slider_elm_interface_atspi_value_value_and_text_set(Eo *obj, Elm_Slider_Dat { double oldval = sd->val; - if (sd->val_min > value) return EINA_FALSE; - if (sd->val_max < value) return EINA_FALSE; + if (value < sd->val_min) value = sd->val_min; + if (value > sd->val_max) value = sd->val_max; eo_do(obj, eo_event_callback_call(ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL)); sd->val = value; -- 2.7.4