X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfshape.c;h=d51f51072660534636e5f30fbbd35577d197668f;hb=1233dfe1f22d9f14584e3811d480a97c6a89d4ff;hp=bcca89f214608a767e3b19154bb1f0e770d283a7;hpb=ab2f7a4cd0eda09ff3af29058c45d098f869b598;p=swftools.git diff --git a/lib/modules/swfshape.c b/lib/modules/swfshape.c index bcca89f..d51f510 100644 --- a/lib/modules/swfshape.c +++ b/lib/modules/swfshape.c @@ -425,9 +425,9 @@ int swf_ShapeSetLine(TAG * t,SHAPE * s,S32 x,S32 y) b = swf_CountBits(y,b); if (b<2) b=2; if(b >= 18) { - if(b >= 18 + 6) { + if(b > 18 + 6) { /* do not split into more than 64 segments. If the line is *that* long, something's broken */ - fprintf(stderr, "Warning: Line to %.2f,%.2f is too long\n", (double)x,(double)y); + fprintf(stderr, "Warning: Line to %.2f,%.2f is too long (%d bits)\n", (double)x,(double)y, b); return -1; } else { /* split line */