From 72106a2b341b29a94871ca7a142b905a444e9d0a Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 16 Jan 2002 11:57:53 +0000 Subject: [PATCH] size optimization: omit splines of zero length. --- pdf2swf/swfoutput.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 1.7.10.4