(part_id < 0))
{
evas_object_image_source_set(ep->object, NULL);
- return ;
+ return;
}
pp = ed->table_parts[part_id % ed->table_parts_size];
if (ep->part->type == EDJE_PART_TYPE_PROXY)
{
Edje_Real_Part *pp;
- int part_id;
+ int part_id = -1;
if (pos >= 0.5)
part_id = ((Edje_Part_Description_Proxy*) ep->param2->description)->proxy.id;
else
part_id = ((Edje_Part_Description_Proxy*) chosen_desc)->proxy.id;
- pp = ed->table_parts[part_id % ed->table_parts_size];
+ if (part_id >= 0)
+ {
+ pp = ed->table_parts[part_id % ed->table_parts_size];
#ifdef EDJE_CALC_CACHE
- if (pp->invalidate)
- proxy_invalidate = EINA_TRUE;
+ if (pp->invalidate)
+ proxy_invalidate = EINA_TRUE;
#endif
-
- if (!pp->calculated) _edje_part_recalc(ed, ep, flags);
+
+ if (!pp->calculated) _edje_part_recalc(ed, pp, flags);
+ }
}
#ifndef EDJE_CALC_CACHE