do not operate if there is no callbacks (unsetting them).

SVN revision: 47650
This commit is contained in:
Gustavo Sverzut Barbieri 2010-04-01 15:56:06 +00:00
parent 6262a884fb
commit ad0679e050
1 changed files with 2 additions and 0 deletions

View File

@ -563,6 +563,8 @@ evas_object_smart_callbacks_descriptions_set(Evas_Object *obj, const Evas_Smart_
count++;
evas_smart_cb_descriptions_resize(&o->callbacks_descriptions, count);
if (count == 0) return 1;
for (i = 0, d = descriptions; i < count; d++, i++)
o->callbacks_descriptions.array[i] = d;