elementary: fix float comparison warning in c&p.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 20 Dec 2016 23:41:23 +0000 (15:41 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000 (16:39 -0800)
src/lib/elementary/elm_cnp.c

index 64f4cba..06d260e 100644 (file)
@@ -5499,7 +5499,7 @@ _cont_obj_anim_start(void *data)
                _drag_anim_start(st);
              else
                {
-                  if (st->anim_tm)
+                  if (!EINA_DBL_CMP(st->anim_tm, 0.0))
                     {
                        // even if we don't manage the icons animation, we have
                        // to wait until it is finished before beginning drag.