edje_cc: don't warn when image attributes are missing in inherit_only group 66/90066/1
authorYoungbok Shin <youngb.shin@samsung.com>
Wed, 28 Sep 2016 06:49:23 +0000 (15:49 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 28 Sep 2016 07:15:55 +0000 (16:15 +0900)
Summary:
The inherit_only groups could be used for template of other groups.
So, even if it has image part, it dose not need to have image attributes.
@fix

Test Plan: N/A

Reviewers: cedric, conr2d, jpeg, raster

Reviewed By: raster

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

Change-Id: I1568c3600a0e3b5270acb3d0e376769a1b96d9c7

src/bin/edje/edje_cc_out.c

index b8f5300..296004e 100644 (file)
@@ -378,6 +378,9 @@ check_image_part_desc(Edje_Part_Collection *pc, Edje_Part *ep,
                       Edje_Part_Description_Image *epd, Eet_File *ef)
 {
    unsigned int i;
+   Edje_Part_Collection_Parser *pcp = (Edje_Part_Collection_Parser *)pc;
+
+   if (pcp->inherit_only) return;
 
    if (epd->image.id == -1 && epd->common.visible)
      WRN("Collection %s(%i): image attributes missing for "