summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-09-04 12:08:56 +0900
committerHermet Park <hermetpark@gmail.com>2019-09-04 12:08:56 +0900
commit405822a314419b5da8f4d8b9dcda35bad4c2f677 (patch)
tree68d6f4345f57773b07f189476846aa8bca7e4d1e /src/static_libs
parent9e3aabe43b96fd405f987ffc257539d60b52fa39 (diff)
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
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_svg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c
index 4f96bec..6cc66ae 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_
716 // apply the transformation 716 // apply the transformation
717 if (node->transform) efl_canvas_vg_node_transformation_set(vg, node->transform); 717 if (node->transform) efl_canvas_vg_node_transformation_set(vg, node->transform);
718 718
719 if (!node->display) efl_gfx_entity_visible_set(vg, EINA_FALSE); 719 if (node->type != SVG_NODE_DOC && !node->display) efl_gfx_entity_visible_set(vg, EINA_FALSE);
720 720
721 if ((node->type == SVG_NODE_G) || (node->type == SVG_NODE_DOC)) return; 721 if ((node->type == SVG_NODE_G) || (node->type == SVG_NODE_DOC)) return;
722 722
@@ -1017,6 +1017,8 @@ _apply_svg_property(Svg_Node *node, Efl_VG *vg)
1017 node->id = eina_stringshare_add(id); 1017 node->id = eina_stringshare_add(id);
1018 } 1018 }
1019 1019
1020 node->display = efl_gfx_entity_visible_get(vg);
1021
1020 if (node->type == SVG_NODE_G) return; 1022 if (node->type == SVG_NODE_G) return;
1021 1023
1022 // apply the fill style property 1024 // apply the fill style property