From 4d11c8f8e277f94fcabd7a51376b55414cae02c1 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 8 Dec 2005 15:55:19 +0000 Subject: Better approach for enforcing the overflow property on block-containers. Fixed a bug in the PDF and PS renderers concerning the clipping of viewport areas. The order of clipping and establishing the new coordinate system was wrong. Removed an unnecessary save/restoreGraphicsState() pair. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355131 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/render/AbstractPathOrientedRenderer.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/java/org/apache/fop/render') diff --git a/src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java b/src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java index 3d0089a73..93645821e 100644 --- a/src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java +++ b/src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java @@ -509,28 +509,23 @@ public abstract class AbstractPathOrientedRenderer extends PrintRenderer { x += borderPaddingStart / 1000f; y += borderPaddingBefore / 1000f; + if (ctm != null) { + startVParea(ctm); + currentIPPosition = 0; + currentBPPosition = 0; + } // clip if necessary if (bv.getClip()) { - saveGraphicsState(); float width = (float)bv.getIPD() / 1000f; float height = (float)bv.getBPD() / 1000f; clipRect(x, y, width, height); } - if (ctm != null) { - startVParea(ctm); - currentIPPosition = 0; - currentBPPosition = 0; - } renderBlocks(bv, children); if (ctm != null) { endVParea(); } - if (bv.getClip()) { - restoreGraphicsState(); - } - currentIPPosition = saveIP; currentBPPosition = saveBP; -- cgit v1.2.3