Fix infinite loop when trying to group_del and group_add when id is zero.

By Thiago Masaki


SVN revision: 48228
This commit is contained in:
Iván Briano 2010-04-22 19:09:30 +00:00
parent 812b9ef672
commit 78ff22f2dc
1 changed files with 2 additions and 2 deletions

View File

@ -824,9 +824,9 @@ edje_edit_group_add(Evas_Object *obj, const char *name)
}
/* Search first free id */
id = 0;
id = -1;
search = 0;
while (!id)
while (id == -1)
{
Eina_Bool found = 0;