git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b25b755
)
don't throw an error on empty shapes- those are perfectly normal e.g.
author
kramm
<kramm>
Thu, 6 Feb 2003 12:28:25 +0000
(12:28 +0000)
committer
kramm
<kramm>
Thu, 6 Feb 2003 12:28:25 +0000
(12:28 +0000)
in fonts. (space character)
lib/modules/swfshape.c
patch
|
blob
|
history
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) {
- 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;