evas: fix color set on Efl.Canvas.Group.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 29 Aug 2017 23:01:10 +0000 (16:01 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 29 Aug 2017 23:01:41 +0000 (16:01 -0700)
src/lib/evas/canvas/evas_object_main.c

index ea824ac..2134998 100644 (file)
@@ -1926,7 +1926,8 @@ _efl_canvas_object_efl_gfx_color_set(Eo *eo_obj, Evas_Object_Protected_Data *obj
      }
    EINA_COW_STATE_WRITE_END(obj, state_write, cur);
 
-   if (obj->is_smart && obj->smart.smart->smart_class &&
+   if (obj->is_smart && obj->smart.smart &&
+       obj->smart.smart->smart_class &&
        obj->smart.smart->smart_class->color_set)
      {
         obj->smart.smart->smart_class->color_set(eo_obj, r, g, b, a);