cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8952d505c29b8878985f3fd7b31742556ebcfdbf

commit 8952d505c29b8878985f3fd7b31742556ebcfdbf
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Dec 20 15:39:08 2016 -0800

    elementary: fix float comparison warning for panes.
---
 src/lib/elementary/elm_panes.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/elm_panes.c b/src/lib/elementary/elm_panes.c
index 3b70dc6..509ca30 100644
--- a/src/lib/elementary/elm_panes.c
+++ b/src/lib/elementary/elm_panes.c
@@ -100,8 +100,8 @@ _elm_panes_elm_widget_focus_next(Eo *obj, Elm_Panes_Data 
*sd, Elm_Focus_Directio
    left = elm_layout_content_get(obj, "left");
    right = elm_layout_content_get(obj, "right");
 
-   if (((sd->orientation == EFL_ORIENT_HORIZONTAL) && (h == 0.0)) ||
-       ((sd->orientation == EFL_ORIENT_VERTICAL) && (w == 0.0)))
+   if (((sd->orientation == EFL_ORIENT_HORIZONTAL) && (EINA_DBL_CMP(h, 0.0))) 
||
+       ((sd->orientation == EFL_ORIENT_VERTICAL) && (EINA_DBL_CMP(w, 0.0))))
      {
        return elm_widget_focus_next_get(right, dir, next, next_item);
      }

-- 


Reply via email to