X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=8b7e21f0cdab34f215a4aa40522daab7880442a4;hp=fb2c341beda024fcc83cf0d51b55b46eaa443140;hb=d5064f549f59d1ef00ab1fadcd02d14d1408b3f3;hpb=fb7bdf552e50f9de4127080885f85a3fad4079c0 diff --git a/lib/devices/swf.c b/lib/devices/swf.c index fb2c341..8b7e21f 100644 --- 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 */ - 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);