pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1782489 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Fri, 10 Feb 2017 16:42:01 GMT
Author: tilman
Date: Fri Feb 10 16:42:01 2017
New Revision: 1782489

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

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=1782489&r1=1782488&r2=1782489&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 Fri
Feb 10 16:42:01 2017
@@ -342,6 +342,10 @@ public class PageDrawer extends PDFGraph
         {
             state.intersectClippingPath(textClippingArea);
             textClippingArea = null;
+
+            // PDFBOX-3681: lastClip needs to be reset, because after intersection it is
still the same 
+            // object, thus setClip() would believe that it is cached.
+            lastClip = null;
         }
     }
 



Mime
View raw message