[poppler] splash/SplashState.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jul 18 14:24:01 UTC 2020


 splash/SplashState.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 08b6fd0f11cb052a3674c1e91fee4a85f60d4e54
Author: Peter Wang <novalazy at gmail.com>
Date:   Thu Jul 16 11:16:03 2020 +1000

    Splash: Set initial line width to 1
    
    Fixes #674
    
    The initial value of the line width graphics state parameter in PDF is 1.0.

diff --git a/splash/SplashState.cc b/splash/SplashState.cc
index 44e7f5cd..dc3eae96 100644
--- a/splash/SplashState.cc
+++ b/splash/SplashState.cc
@@ -58,7 +58,7 @@ SplashState::SplashState(int width, int height, bool vectorAntialias, SplashScre
     multiplyPatternAlpha = false;
     patternStrokeAlpha = 1;
     patternFillAlpha = 1;
-    lineWidth = 0;
+    lineWidth = 1;
     lineCap = splashLineCapButt;
     lineJoin = splashLineJoinMiter;
     miterLimit = 10;
@@ -113,7 +113,7 @@ SplashState::SplashState(int width, int height, bool vectorAntialias, SplashScre
     multiplyPatternAlpha = false;
     patternStrokeAlpha = 1;
     patternFillAlpha = 1;
-    lineWidth = 0;
+    lineWidth = 1;
     lineCap = splashLineCapButt;
     lineJoin = splashLineJoinMiter;
     miterLimit = 10;


More information about the poppler mailing list