From 608575f5bdbbfa77a7ce9278807a12a04c64858f Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Mon, 28 May 2018 21:38:51 -0700 Subject: [PATCH] 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 --- src/lib/eo/eo_base_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 815d6ba264..e57a245ea8 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -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);