From 405822a314419b5da8f4d8b9dcda35bad4c2f677 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Wed, 4 Sep 2019 12:08:56 +0900 Subject: [PATCH] vg_common_svg : Initialize "display" attribute Summary: In e850e3e, the code to initialize this property is missing. That makes the object invisible when printing svg through edje. This is a patch to fix it. @fix Test Plan: N/A Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9833 --- src/static_libs/vg_common/vg_common_svg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c index 4f96bec9aa..6cc66ae903 100644 --- a/src/static_libs/vg_common/vg_common_svg.c +++ b/src/static_libs/vg_common/vg_common_svg.c @@ -716,7 +716,7 @@ _apply_vg_property(Svg_Node *node, Efl_VG *vg, Efl_VG *parent, Vg_File_Data *vg_ // apply the transformation if (node->transform) efl_canvas_vg_node_transformation_set(vg, node->transform); - if (!node->display) efl_gfx_entity_visible_set(vg, EINA_FALSE); + if (node->type != SVG_NODE_DOC && !node->display) efl_gfx_entity_visible_set(vg, EINA_FALSE); if ((node->type == SVG_NODE_G) || (node->type == SVG_NODE_DOC)) return; @@ -1017,6 +1017,8 @@ _apply_svg_property(Svg_Node *node, Efl_VG *vg) node->id = eina_stringshare_add(id); } + node->display = efl_gfx_entity_visible_get(vg); + if (node->type == SVG_NODE_G) return; // apply the fill style property