Container copied composite target in prior to duplicate children,
the composite target is one of the children, it should skip to handle it again.
Change-Id: I9a3074ca858f7827ab7d8315ed4446370952a8f0
EOLIAN static Efl_VG *
_efl_canvas_vg_container_efl_duplicate_duplicate(const Eo *obj,
- Efl_Canvas_Vg_Container_Data *pd)
+ Efl_Canvas_Vg_Container_Data *pd)
{
Eina_List *l;
Efl_VG *child;
//Copy Children
EINA_LIST_FOREACH(pd->children, l, child)
{
+ //Skip, We already copied composite target before.
+ if (child == pd->comp_target) continue;
+
Efl_VG *eo = efl_duplicate(child);
efl_parent_set(eo, container);
}