don't throw an error on empty shapes- those are perfectly normal e.g.
[swftools.git] / lib / modules / swfshape.c
index 6bb1bad..024041b 100644 (file)
@@ -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;