From: Cedric BAIL Date: Tue, 20 Dec 2016 23:15:51 +0000 (-0800) Subject: elementary: fix float comparison warning in thumb. X-Git-Tag: upstream/1.20.0~2686 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33e43c5608d4cadb57e3304da79f13901a6abdf2;p=platform%2Fupstream%2Fefl.git elementary: fix float comparison warning in thumb. --- diff --git a/src/lib/elementary/elm_thumb.c b/src/lib/elementary/elm_thumb.c index 9332c23..b1893de 100644 --- a/src/lib/elementary/elm_thumb.c +++ b/src/lib/elementary/elm_thumb.c @@ -358,7 +358,7 @@ _thumb_start(Elm_Thumb_Data *sd) ethumb_client_orientation_set(_elm_ethumb_client, sd->thumb.orient); if (sd->thumb.tw && sd->thumb.th) ethumb_client_size_set(_elm_ethumb_client, sd->thumb.tw, sd->thumb.th); - if (sd->thumb.cropx && sd->thumb.cropy) + if (!EINA_DBL_CMP(sd->thumb.cropx, 0) && !EINA_DBL_CMP(sd->thumb.cropy, 0)) ethumb_client_crop_align_set(_elm_ethumb_client, sd->thumb.cropx, sd->thumb.cropy); if (sd->thumb.quality) ethumb_client_quality_set(_elm_ethumb_client, sd->thumb.quality);