]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2187: Generating pdf works awt & png crashes when overflow hidden
authorLuis Bernardo <lbernardo@apache.org>
Fri, 18 Jan 2013 00:39:39 +0000 (00:39 +0000)
committerLuis Bernardo <lbernardo@apache.org>
Fri, 18 Jan 2013 00:39:39 +0000 (00:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1434992 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/java2d/Java2DPainter.java

index e34fb4bbbb5691c347960dd5365a0d6ceb5ce13c..dc9cf9dab5b91263fed0b17d50c72052830a489d 100644 (file)
@@ -130,7 +130,9 @@ public class Java2DPainter extends AbstractIFPainter<Java2DDocumentHandler> {
         saveGraphicsState();
         try {
             concatenateTransformationMatrix(transform);
-            clipRect(clipRect);
+            if (clipRect != null) {
+                clipRect(clipRect);
+            }
         } catch (IOException ioe) {
             throw new IFException("I/O error in startViewport()", ioe);
         }