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:
Marcel Hollerbach 2018-05-28 21:38:51 -07:00 committed by Cedric BAIL
parent 665e88f8b4
commit 608575f5bd
1 changed files with 1 additions and 1 deletions

View File

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