forked from enlightenment/efl
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:
parent
b79b3eea00
commit
720db8694c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue