elementary: slider uses max value when atspi tries to set value.

Because double type value could be 1.00000000000000022204.
This commit is contained in:
Shinwoo Kim 2016-12-14 20:18:50 +09:00
parent 9f5e9ec7ca
commit 15687ad75d
1 changed files with 2 additions and 2 deletions

View File

@ -1641,8 +1641,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;
efl_event_callback_legacy_call(obj, ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL);
sd->val = value;