pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1799592 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Thu, 22 Jun 2017 16:36:23 GMT
Author: tilman
Date: Thu Jun 22 16:36:23 2017
New Revision: 1799592

URL: http://svn.apache.org/viewvc?rev=1799592&view=rev
Log:
PDFBOX-3836: lastClip needs to be reset, because after intersection it is still the same object

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=1799592&r1=1799591&r2=1799592&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 Thu Jun
22 16:36:23 2017
@@ -816,6 +816,11 @@ public class PageDrawer extends PDFGraph
         {
             linePath.setWindingRule(clipWindingRule);
             getGraphicsState().intersectClippingPath(linePath);
+
+            // PDFBOX-3836: lastClip needs to be reset, because after intersection it is
still the same 
+            // object, thus setClip() would believe that it is cached.
+            lastClip = null;
+
             clipWindingRule = -1;
         }
         linePath.reset();



Mime
View raw message