edje: stop compilation when clipping to a non RECT part.

SVN revision: 73801
This commit is contained in:
Cedric BAIL 2012-07-13 09:15:17 +00:00
parent 7835bdd259
commit 379566ece7
3 changed files with 8 additions and 1 deletions

View File

@ -526,4 +526,4 @@
2012-07-12 Cedric Bail
* Warn at compile time about forgotten image definition.
* Stop compilation when clipping to a non RECT part.

View File

@ -12,6 +12,7 @@ Additions:
* Add accessibility flags and API to retrieve the relevant part.
* Emit signal when flagged part size get to zero.
* Warn at compile time about forgotten image.
* Stop compilation when clipping to a non RECT part.
Improvements:
* Allocate once and reuse Evas_Map.

View File

@ -289,6 +289,12 @@ check_part(Edje_Part_Collection *pc, Edje_Part *ep, Eet_File *ef)
else if ((ep->type == EDJE_PART_TYPE_BOX) ||
(ep->type == EDJE_PART_TYPE_TABLE))
check_packed_items(pc, ep, ef);
/* FIXME: When mask are supported remove this check */
if (ep->clip_to_id != -1 &&
pc->parts[ep->clip_to_id]->type != EDJE_PART_TYPE_RECTANGLE)
error_and_abort(ef, "Collection %i: clip_to point to a non RECT part '%s' !\n",
pc->id, pc->parts[ep->clip_to_id]->name);
}
static void