summaryrefslogtreecommitdiff
path: root/src/lib/ector
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-04-13 13:41:17 +0900
committerHermet Park <chuneon.park@samsung.com>2020-04-13 13:41:17 +0900
commit720db8694ce26f5f29efe79a3e125ccb6fbc1b14 (patch)
tree96d83bb1ecc5c4b4abcb203585f55bcae16274e0 /src/lib/ector
parentb79b3eea00c7f7d7cd3268df4fc1bb8b5f66444e (diff)
downloadefl-720db8694ce26f5f29efe79a3e125ccb6fbc1b14.tar.gz
Ector: Refer to visibility of Ector_Renderer when doing rle_update.
Summary: An object with visibility false may not have a normal path or data. It can cause invalid access or affect other ector renderers. This is a patch to prevent them. Test Plan: N/A Reviewers: Hermet, kimcinoo, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11689
Diffstat (limited to 'src/lib/ector')
-rw-r--r--src/lib/ector/software/ector_renderer_software_shape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ector/software/ector_renderer_software_shape.c b/src/lib/ector/software/ector_renderer_software_shape.c
index 0db1ea2a70..d8d804db22 100644
--- a/src/lib/ector/software/ector_renderer_software_shape.c
+++ b/src/lib/ector/software/ector_renderer_software_shape.c
@@ -535,8 +535,8 @@ _need_update_rle(Eo *obj, Ector_Renderer_Software_Shape_Data *pd)
{
if (pd->task) return pd->task;
- if (!_generate_stroke_data(pd) &&
- !_generate_shape_data(pd))
+ if (!pd->base->visibility || (!_generate_stroke_data(pd) &&
+ !_generate_shape_data(pd)))
return NULL;
const Efl_Gfx_Path_Command *cmds;