forked from enlightenment/efl
eo: do not return efl_invalidated true when its not true
Summary: the object is invalidated AFTER the parent is lost, (thats what the doc says). Returning invalidated as true when the parent is still present is thus not correctly. Depends on D6222 Reviewers: cedric, zmike, JackDanielZ Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6223 Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
This commit is contained in:
parent
665e88f8b4
commit
608575f5bd
|
@ -815,7 +815,7 @@ _efl_object_invalidated_get(const Eo *obj_id, Efl_Object_Data *pd)
|
|||
{
|
||||
Eina_Bool invalidate;
|
||||
EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, EINA_TRUE);
|
||||
invalidate = obj->invalidate || obj->is_invalidating;
|
||||
invalidate = obj->invalidate;
|
||||
EO_OBJ_DONE(obj_id);
|
||||
if (!invalidate && pd && pd->parent)
|
||||
return efl_invalidated_get(pd->parent);
|
||||
|
|
Loading…
Reference in New Issue