From 5ae7d96a89642965227e5de2924b87476ec84f65 Mon Sep 17 00:00:00 2001 From: Luis Bernardo Date: Fri, 18 Jan 2013 00:39:39 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/render/java2d/Java2DPainter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.5