git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
font colour changes
[swftools.git]
/
lib
/
modules
/
swfshape.c
diff --git
a/lib/modules/swfshape.c
b/lib/modules/swfshape.c
index
6bb1bad
..
024041b
100644
(file)
--- 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) {
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;
}
while(shape) {
if(shape->x < r.xmin) r.xmin = shape->x;