forked from enlightenment/efl
evas vector: set proper parents of clone objects.
fill, marker, stroke need proper parent when they were cloned. Here, they would get the container of the shape which is going to be copied. @fix
This commit is contained in:
parent
fb7f9d4ed3
commit
b9661d85cd
|
@ -203,23 +203,22 @@ _efl_canvas_vg_shape_efl_duplicate_duplicate(const Eo *obj, Efl_Canvas_Vg_Shape_
|
||||||
node = efl_duplicate(efl_super(obj, MY_CLASS));
|
node = efl_duplicate(efl_super(obj, MY_CLASS));
|
||||||
sd = efl_data_scope_get(node, MY_CLASS);
|
sd = efl_data_scope_get(node, MY_CLASS);
|
||||||
|
|
||||||
//FIXME: These fill, markers couldn't allow node as parent...
|
|
||||||
if (pd->fill)
|
if (pd->fill)
|
||||||
{
|
{
|
||||||
sd->fill = efl_duplicate(pd->fill);
|
sd->fill = efl_duplicate(pd->fill);
|
||||||
efl_parent_set(sd->fill, node);
|
efl_parent_set(sd->fill, efl_parent_get(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pd->stroke.fill)
|
if (pd->stroke.fill)
|
||||||
{
|
{
|
||||||
sd->stroke.fill = efl_duplicate(pd->stroke.fill);
|
sd->stroke.fill = efl_duplicate(pd->stroke.fill);
|
||||||
efl_parent_set(sd->stroke.fill, node);
|
efl_parent_set(sd->stroke.fill, efl_parent_get(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pd->stroke.marker)
|
if (pd->stroke.marker)
|
||||||
{
|
{
|
||||||
sd->stroke.marker = efl_duplicate(pd->stroke.marker);
|
sd->stroke.marker = efl_duplicate(pd->stroke.marker);
|
||||||
efl_parent_set(sd->stroke.marker, node);
|
efl_parent_set(sd->stroke.marker, efl_parent_get(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
efl_gfx_path_copy_from(node, obj);
|
efl_gfx_path_copy_from(node, obj);
|
||||||
|
|
Loading…
Reference in New Issue