Gengrid: Correct double comparision.
Summary: Use the more accurate EINA_DBL_EQ for double comparision. @fix Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com> Reviewers: singh.amitesh, cedric, jpeg, raster Reviewed By: singh.amitesh Subscribers: atulfokk, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4706 Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
This commit is contained in:
parent
3b4cbc56bb
commit
d4dd0b20df
|
@ -3084,7 +3084,7 @@ _item_move_cb(void *data, double pos)
|
|||
|
||||
evas_object_move(VIEW(sd->reorder.it1), xx1, yy1);
|
||||
|
||||
if (pos == 1.0)
|
||||
if (EINA_DBL_EQ(pos, 1.0))
|
||||
{
|
||||
_anim_end(sd);
|
||||
if (sd->reorder.type == ELM_GENGRID_REORDER_TYPE_NORMAL)
|
||||
|
|
Loading…
Reference in New Issue