From: Luis Bernardo Date: Fri, 18 Jan 2013 00:39:39 +0000 (+0000) Subject: FOP-2187: Generating pdf works awt & png crashes when overflow hidden X-Git-Tag: fop-2_0~243 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ae7d96a89642965227e5de2924b87476ec84f65;p=xmlgraphics-fop.git FOP-2187: Generating pdf works awt & png crashes when overflow hidden git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1434992 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/java2d/Java2DPainter.java b/src/java/org/apache/fop/render/java2d/Java2DPainter.java index e34fb4bbb..dc9cf9dab 100644 --- a/src/java/org/apache/fop/render/java2d/Java2DPainter.java +++ b/src/java/org/apache/fop/render/java2d/Java2DPainter.java @@ -130,7 +130,9 @@ public class Java2DPainter extends AbstractIFPainter { saveGraphicsState(); try { concatenateTransformationMatrix(transform); - clipRect(clipRect); + if (clipRect != null) { + clipRect(clipRect); + } } catch (IOException ioe) { throw new IFException("I/O error in startViewport()", ioe); }