projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e5da80
)
elementary: fix float comparison warning for panes.
author
Cedric BAIL
<cedric@osg.samsung.com>
Tue, 20 Dec 2016 23:39:08 +0000
(15:39 -0800)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000
(16:39 -0800)
src/lib/elementary/elm_panes.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_panes.c
b/src/lib/elementary/elm_panes.c
index
3b70dc6
..
509ca30
100644
(file)
--- 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);
}