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:
Umesh Tanwar 2017-03-10 11:59:52 +05:30 committed by Amitesh Singh
parent 3b4cbc56bb
commit d4dd0b20df
1 changed files with 1 additions and 1 deletions

View File

@ -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)