From 25f6e2c1ed3201550f1c6c8a80c1d24f24d015af Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Thu, 31 Mar 2011 12:38:23 -0700 Subject: [PATCH] dashpattern 0/0 now makes lines invisible --- lib/pdf/VectorGraphicOutputDev.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pdf/VectorGraphicOutputDev.cc b/lib/pdf/VectorGraphicOutputDev.cc index 8c1b3af1..715aa8f8 100644 --- a/lib/pdf/VectorGraphicOutputDev.cc +++ b/lib/pdf/VectorGraphicOutputDev.cc @@ -517,6 +517,11 @@ void VectorGraphicOutputDev::strokeGfxline(GfxState *state, gfxline_t*line, int warnfeature("non-ortogonally dashed strokes", 0); double f = (d1+d2)/2; + if(!dashStart && dashLength==1 && !dashPattern[0]) { + // zero phase and zero dashlength make the line invisible + return; + } + msg(" %d dashes", dashLength); msg(" | phase: %f", dashStart); for(t=0;t