pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1861182 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Wed, 12 Jun 2019 18:43:53 GMT
Author: tilman
Date: Wed Jun 12 18:43:53 2019
New Revision: 1861182

URL: http://svn.apache.org/viewvc?rev=1861182&view=rev
Log:
PDFBOX-4571: valid lineCap and lineJoin values are 0 and 2

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1861182&r1=1861181&r2=1861182&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Wed Jun
12 18:43:53 2019
@@ -669,7 +669,7 @@ public class PageDrawer extends PDFGraph
                 }
             }
         }
-        int lineCap = Math.min(2, Math.max(0, state.getLineCap())); // legal values 0..
+        int lineCap = Math.min(2, Math.max(0, state.getLineCap())); // legal values 0..2
         int lineJoin = Math.min(2, Math.max(0, state.getLineJoin()));
         return new BasicStroke(lineWidth, lineCap, lineJoin,
                                state.getMiterLimit(), dashArray, phaseStart);



Mime
View raw message