From: kramm Date: Wed, 16 Jan 2002 11:57:53 +0000 (+0000) Subject: size optimization: omit splines of zero length. X-Git-Tag: release-0-2-2~8 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=72106a2b341b29a94871ca7a142b905a444e9d0a;p=swftools.git size optimization: omit splines of zero length. --- diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 170d3cf..1ac10c8 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -121,7 +121,8 @@ static void splineto(TAG*tag, plotxy control,plotxy end) int ey = ((int)(end.y*20)-swflasty); swflastx += ex; swflasty += ey; - swf_ShapeSetCurve(tag, shape, cx,cy,ex,ey); + if(cx || cy || ex || ey) + swf_ShapeSetCurve(tag, shape, cx,cy,ex,ey); } /* write a line, given two points and the transformation