From 34de503961eb25613a5b3f2a8e5bdb5d1f5de0e9 Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 6 Feb 2003 12:28:25 +0000 Subject: [PATCH] don't throw an error on empty shapes- those are perfectly normal e.g. in fonts. (space character) --- lib/modules/swfshape.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4