cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=691ba877d763142a14eeb3809fc0c1766a09125a

commit 691ba877d763142a14eeb3809fc0c1766a09125a
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Dec 20 15:16:17 2016 -0800

    elementary: fix float warning in scroller.
---
 src/lib/elementary/elm_scroller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_scroller.c 
b/src/lib/elementary/elm_scroller.c
index 731c9af..d14d6b2 100644
--- a/src/lib/elementary/elm_scroller.c
+++ b/src/lib/elementary/elm_scroller.c
@@ -148,7 +148,7 @@ _key_action_move(Evas_Object *obj, const char *params)
                     cur_weight += ((f_x - c_x) - x) * ((f_x - c_x) - x);
                   if ((f_y - c_y) > y)
                     cur_weight += ((f_y - c_y) - y) * ((f_y - c_y) - y);
-                  if (cur_weight == 0.0)
+                  if (EINA_DBL_CMP(cur_weight, 0.0))
                     {
                        elm_widget_focus_steal(cur, NULL);
                        eina_list_free(can_focus_list);

-- 


Reply via email to