diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-12-08 15:55:19 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-12-08 15:55:19 +0000 |
commit | 4d11c8f8e277f94fcabd7a51376b55414cae02c1 (patch) | |
tree | b7164855c5cc9a84e76a0d2aba8a1c9b472cd889 /src/java/org/apache/fop/render | |
parent | 2f6fb03daf340a5a120dd9ed807f5ef3e04f8618 (diff) | |
download | xmlgraphics-fop-4d11c8f8e277f94fcabd7a51376b55414cae02c1.tar.gz xmlgraphics-fop-4d11c8f8e277f94fcabd7a51376b55414cae02c1.zip |
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
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r-- | src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java | 15 |
1 files changed, 5 insertions, 10 deletions
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; |