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:
fb7bdf5
)
fixed handling of empty clip shapes
author
kramm
<kramm>
Sun, 14 Oct 2007 21:02:07 +0000
(21:02 +0000)
committer
kramm
<kramm>
Sun, 14 Oct 2007 21:02:07 +0000
(21:02 +0000)
lib/devices/swf.c
patch
|
blob
|
history
diff --git
a/lib/devices/swf.c
b/lib/devices/swf.c
index
fb2c341
..
8b7e21f
100644
(file)
--- a/
lib/devices/swf.c
+++ b/
lib/devices/swf.c
@@
-2082,9
+2082,11
@@
static void swf_startclip(gfxdevice_t*dev, gfxline_t*line)
drawgfxline(dev, line);
if(i->shapeisempty) {
/* an empty clip shape is equivalent to a shape with no area */
drawgfxline(dev, line);
if(i->shapeisempty) {
/* an empty clip shape is equivalent to a shape with no area */
- moveto(dev, i->tag, line->x, line->y);
- lineto(dev, i->tag, line->x, line->y);
- lineto(dev, i->tag, line->x, line->y);
+ int x = line?line->x:0;
+ int y = line?line->y:0;
+ moveto(dev, i->tag, x,y);
+ lineto(dev, i->tag, x,y);
+ lineto(dev, i->tag, x,y);
}
swf_ShapeSetEnd(i->tag);
swf_ShapeFree(shape);
}
swf_ShapeSetEnd(i->tag);
swf_ShapeFree(shape);