evas: Fix no update issue if visiblity of smart object has change 10/91810/1
authorJi-Youn Park <jy0703.park@samsung.com>
Tue, 11 Oct 2016 12:18:49 +0000 (20:48 +0830)
committerJi-Youn Park <jy0703.park@samsung.com>
Tue, 11 Oct 2016 12:18:49 +0000 (20:48 +0830)
    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

    opensource_commit 846c14a3925e22b0eec7a7864b6cd8875211e611
    Author: jiin.moon <jiin.moon@samsung.com>
    Date:   Tue Oct 11 21:08:29 2016 +0900

Change-Id: I7c2ae19327300c4f40b8eb0cc2e0b2fa6bdc72ba

src/lib/evas/canvas/evas_object_smart.c

index b593cc9..2930e12 100644 (file)
@@ -1017,7 +1017,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;