summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-10-16 15:07:36 +0900
committerHermet Park <hermetpark@gmail.com>2018-10-16 15:07:51 +0900
commitadcaa8b82b54a841bcbc13fb7eea626e17410d12 (patch)
tree575e5a38641f78725d80cd4089b145f80c9b6734
parent00f889d91aee829b4488cc3d52221e369c8a0968 (diff)
devas vg: return default root node if possible.
Summary: It could return NULL root node while user expect a valid root node in default as It did before. This is a regresion bug from long ago. @fix Reviewers: #committers Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7162
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_object.c b/src/lib/evas/canvas/efl_canvas_vg_object.c
index cc41ffcf2e..25d6f598a3 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_object.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_object.c
@@ -130,6 +130,8 @@ _efl_canvas_vg_object_root_node_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Vg_Obj
130 root = evas_cache_vg_tree_get(pd->vg_entry); 130 root = evas_cache_vg_tree_get(pd->vg_entry);
131 else if (pd->user_entry) 131 else if (pd->user_entry)
132 root = pd->user_entry->root; 132 root = pd->user_entry->root;
133 else
134 root = pd->root;
133 135
134 return root; 136 return root;
135} 137}