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
This commit is contained in:
junsu choi 2020-04-13 13:41:17 +09:00 committed by Hermet Park
parent b79b3eea00
commit 720db8694c
1 changed files with 2 additions and 2 deletions

View File

@ -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;