edje_edit: avoid generate '(null)' value for image.normal 78/92678/2
authorVyacheslav Reutskiy <v.reutskiy@samsung.com>
Tue, 18 Oct 2016 05:49:07 +0000 (08:49 +0300)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 21 Oct 2016 02:30:01 +0000 (19:30 -0700)
Change-Id: I4b53afb0375d4fa7a0c3b88ff05b0c368543f96d
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
src/lib/edje/edje_edit.c

index 45979b9..0e1e80d 100644 (file)
@@ -13349,10 +13349,10 @@ _edje_generate_source_state_image(Edje_Edit *eed, Evas_Object *obj,
    Edje_Part_Description_Image *inherit_pd_img = (Edje_Part_Description_Image *)inherit_pd;
 
 
-/*TODO: support tweens inherit*/
    if (inherit_pd)
      {
-        name = (img->image.id == inherit_pd_img->image.id) ? EINA_FALSE : EINA_TRUE;
+        if (img->image.id != -1)
+          name = (img->image.id == inherit_pd_img->image.id) ? EINA_FALSE : EINA_TRUE;
 
         border = ((img->image.border.l == inherit_pd_img->image.border.l) &&
                   (img->image.border.r == inherit_pd_img->image.border.r) &&