X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FGFXOutputDev.cc;h=13c81e4dff2a6ffff77ed1d42fe608467cbedcba;hb=8046ca2dd750421db155a63ab800f1965bb29aa8;hp=0fb2591ab49571a8a4feaac9ca1ef72d13887569;hpb=8e4e0278a8fbde7e4f65402f3692724aad4e9698;p=swftools.git diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index 0fb2591..13c81e4 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -73,8 +73,6 @@ #include "../devices/polyops.h" #include "../devices/render.h" -#include "../art/libart.h" - #include "../png.h" #include "fonts.h" @@ -1085,6 +1083,8 @@ void GFXOutputDev::strokeGfxline(GfxState *state, gfxline_t*line, int flags) this->transformXY(state, 1, 1, &tx2, &ty2); double f = sqrt(sqr(tx2-tx1)+sqr(ty2-ty1)) / SQRT2; + f = 1.0; //disable dash length transform for now + msg(" %d dashes", this->dashLength); msg(" | phase: %f", this->dashStart); for(t=0;tdashLength;t++) { @@ -1128,7 +1128,7 @@ void GFXOutputDev::strokeGfxline(GfxState *state, gfxline_t*line, int flags) } else { device->fill(device, gfxline, &col); } - free(gfxline); + gfxline_free(gfxline); gfxpoly_free(poly); } else { if(flags&STROKE_CLIP)