edje: check the number of parameter for edc.

SVN revision: 75876
This commit is contained in:
Cedric BAIL 2012-08-30 11:28:07 +00:00
parent 0008f2362f
commit 3da32a51aa
4 changed files with 19 additions and 1 deletions

View File

@ -577,3 +577,7 @@
2012-08-30 Carsten Haitzler (The Rasterman)
1.7.0 release
2012-08-30 Cedric Bail
* Check the number of parameter for image in edc.

View File

@ -1,3 +1,16 @@
Edje 1.8.0
Changes since Edje 1.8.0:
-------------------------
Additions:
Improvements:
* Check the number of parameter for image in edc.
Fixes:
Edje 1.7.0
Changes since Edje 1.2.0:

View File

@ -1238,6 +1238,8 @@ st_images_image(void)
unsigned int i;
int v;
check_min_arg_count(2);
if (!edje_file->image_dir)
edje_file->image_dir = mem_alloc(SZ(Edje_Image_Directory));

View File

@ -225,7 +225,6 @@ check_image_part_desc(Edje_Part_Collection *pc, Edje_Part *ep,
{
unsigned int i;
/* FIXME: This check sounds like not a useful one */
if (epd->image.id == -1 && epd->common.visible)
WRN("Collection %s(%i): image attributes missing for "
"part \"%s\", description \"%s\" %f",