From: lucas Date: Wed, 13 Oct 2010 19:40:11 +0000 (+0000) Subject: Fix bug in evas_smart_cb_descriptions_fix. X-Git-Tag: accepted/2.0/20130306.225542~242^2~1404 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bb1710dccc6e27f4541a86d8b6f8e81ccb64633;p=profile%2Fivi%2Fevas.git Fix bug in evas_smart_cb_descriptions_fix. The last element of descriptions array was always removed. By: Otavio Pontes git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@53379 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_smart.c b/src/lib/canvas/evas_smart.c index 9a065f0..0204a41 100644 --- a/src/lib/canvas/evas_smart.c +++ b/src/lib/canvas/evas_smart.c @@ -307,7 +307,7 @@ evas_smart_cb_descriptions_fix(Evas_Smart_Cb_Description_Array *a) } } - evas_smart_cb_descriptions_resize(a, a->size - (j - i)); + evas_smart_cb_descriptions_resize(a, i + 1); } static void