From: kramm Date: Thu, 6 Feb 2003 12:28:25 +0000 (+0000) Subject: don't throw an error on empty shapes- those are perfectly normal e.g. X-Git-Tag: release-0-4-4~126 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=34de503961eb25613a5b3f2a8e5bdb5d1f5de0e9 don't throw an error on empty shapes- those are perfectly normal e.g. in fonts. (space character) --- diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index 6bb1bad..024041b 100644 --- a/lib/modules/swfshape.c +++ b/lib/modules/swfshape.c @@ -625,7 +625,8 @@ SRECT swf_GetShapeBoundingBox(SHAPELINE*shape) r.xmin = r.ymin = SCOORD_MAX; r.xmax = r.ymax = SCOORD_MIN; if(!shape) { - fprintf(stderr, "rfxswf: Warning: empty Shape\n"); + memset(&r, 0, sizeof(SRECT)); + return r; } while(shape) { if(shape->x < r.xmin) r.xmin = shape->x;