evas: Fix no update issue if visiblity of smart object has change
authorjiin.moon <jiin.moon@samsung.com>
Tue, 11 Oct 2016 12:08:29 +0000 (21:08 +0900)
committerHermet Park <hermet@hermet.pe.kr>
Tue, 11 Oct 2016 12:09:01 +0000 (21:09 +0900)
Summary: If child has change about visibility, can't check it correctly.

Reviewers: jypark, cedric, jpeg, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D4345

src/lib/evas/canvas/evas_object_smart.c

index a42a2f7..cb71711 100644 (file)
@@ -1036,7 +1036,7 @@ evas_object_smart_changed_get(Evas_Object *eo_obj)
       for rendering. */
 
    //a. Object itself visibility
-   if (obj->no_render || !(obj->prev->visible && obj->cur->visible) ||
+   if (obj->no_render || (!obj->prev->visible && !obj->cur->visible) ||
        ((obj->prev->color.a == 0) && (obj->cur->color.a == 0)))
      return EINA_FALSE;