From: raster Date: Mon, 23 May 2011 13:12:35 +0000 (+0000) Subject: fix out of bounds check. X-Git-Tag: REL_F_I9500_20120323_1~17^2~2709 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03b9b1d12ec88240966f9a5401b95cddc4878b49;p=framework%2Fuifw%2Felementary.git fix out of bounds check. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@59628 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/test_flip_page.c b/src/bin/test_flip_page.c index 37d6084..6718722 100644 --- a/src/bin/test_flip_page.c +++ b/src/bin/test_flip_page.c @@ -713,6 +713,8 @@ im_up_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, if (st->y > (st->h / 2)) st->finish = 1; tm = 1.0 - ((double)st->y / (double)st->h); } + if (tm < 0.01) tm = 0.01; + else if (tm > 0.99) tm = 0.99; if (!st->finish) tm = 1.0 - tm; tm *= 0.5; st->anim = ecore_animator_timeline_add(tm, _state_anim, st);