[poppler] splash/Splash.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Dec 8 14:14:38 PST 2012


 splash/Splash.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1bfe4b22cf893dd498d6f306ee9cf942c72fe3ed
Author: Matthias Kramm <kramm at quiss.org>
Date:   Mon Nov 19 12:39:56 2012 -0800

    Fix linewidths in monochrome mode.
    
    For zoom levels that scale the page below sqrt(2) of the original
    resolution, monochrome line widths were wrong (snapped back to 1 pixel
    wide.) This patch fixes that issue.

diff --git a/splash/Splash.cc b/splash/Splash.cc
index 7fa509c..549fae5 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -1979,7 +1979,7 @@ SplashError Splash::stroke(SplashPath *path) {
     strokeWide(path2, w);
   } else if (bitmap->mode == splashModeMono1) {
     // this gets close to Adobe's behavior in mono mode
-    if (d1 <= 2) {
+    if (d1 * state->lineWidth <= 2) {
       strokeNarrow(path2);
     } else {
       strokeWide(path2, state->lineWidth);


More information about the poppler mailing list