[poppler] poppler/SplashOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Mar 8 22:09:24 UTC 2016


 poppler/SplashOutputDev.cc |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 09e2ae234179c42ccf06b040a0f6c89d65d69713
Author: Thomas Freitag <Thomas.Freitag at alfa.de>
Date:   Tue Mar 8 23:08:53 2016 +0100

    assure line width > 0 in case of text stroke
    
    Bug #94038

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index cc3199d..a1f5980 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -2396,6 +2396,9 @@ void SplashOutputDev::drawChar(GfxState *state, double x, double y,
   doClip = render & 4;
 
   path = NULL;
+  SplashCoord lineWidth = splash->getLineWidth();
+  if (doStroke && lineWidth == 0.0)
+    splash->setLineWidth(1 / state->getVDPI());
   if (doStroke || doClip) {
     if ((path = font->getGlyphPath(code))) {
       path->offset((SplashCoord)x, (SplashCoord)y);
@@ -2440,6 +2443,7 @@ void SplashOutputDev::drawChar(GfxState *state, double x, double y,
       splash->stroke(path);
     }
   }
+  splash->setLineWidth(lineWidth);
 
   // clip
   if (doClip) {


More information about the poppler mailing list