overriding) patches....!!!!! fix!
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@64028
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
- ep = pc->parts[pc->parts_count - 1];
+ ep = current_part;
ep->name = parse_str(0);
+ if (ep->name)
{
unsigned int i;
- for (i = 0; i < pc->parts_count - 1; ++i)
+ for (i = 0; i < (pc->parts_count - 1); i++)
{
if (pc->parts[i]->name && (!strcmp(pc->parts[i]->name, ep->name)))
{
free(ep);
pc->parts_count--;
pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
- current_part = pc->parts[i];
+ ep = current_part = pc->parts[i];
epp->can_override = EINA_FALSE;
}
}