pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1807478 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Wed, 06 Sep 2017 12:28:53 GMT
Author: tilman
Date: Wed Sep  6 12:28:53 2017
New Revision: 1807478

URL: http://svn.apache.org/viewvc?rev=1807478&view=rev
Log:
PDFBOX-2852: remove unneeded initialization, all graphics stroke operations call graphics.setStroke(getStroke())

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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1807478&r1=1807477&r2=1807478&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Wed
Sep  6 12:28:53 2017
@@ -197,9 +197,6 @@ public class PageDrawer extends PDFGraph
         graphics.translate(0, pageSize.getHeight());
         graphics.scale(1, -1);
 
-        // TODO use getStroke() to set the initial stroke
-        graphics.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER));
-
         // adjust for non-(0,0) crop box
         graphics.translate(-pageSize.getLowerLeftX(), -pageSize.getLowerLeftY());
 



Mime
View raw message