Fix bug in evas_smart_cb_descriptions_fix.
authorlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 13 Oct 2010 19:40:11 +0000 (19:40 +0000)
committerlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 13 Oct 2010 19:40:11 +0000 (19:40 +0000)
The last element of descriptions array was always removed.

By: Otavio Pontes <otavio@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@53379 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_smart.c

index 9a065f0..0204a41 100644 (file)
@@ -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