aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-04-11 21:45:17 +0000
committerKaren Lease <klease@apache.org>2001-04-11 21:45:17 +0000
commitc6f5453474f1f1547c33019bb9fe6bedcd26f675 (patch)
tree9e1d52a03378021048d6cecc2ff27da1404e1f8a /src
parent52b192f408c5dba675f072ceaa49dad160bd0eab (diff)
downloadxmlgraphics-fop-c6f5453474f1f1547c33019bb9fe6bedcd26f675.tar.gz
xmlgraphics-fop-c6f5453474f1f1547c33019bb9fe6bedcd26f675.zip
Correct bug with AreaContainer positioning
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194206 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/render/PrintRenderer.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/apache/fop/render/PrintRenderer.java b/src/org/apache/fop/render/PrintRenderer.java
index 11e3f2cda..128b2765a 100644
--- a/src/org/apache/fop/render/PrintRenderer.java
+++ b/src/org/apache/fop/render/PrintRenderer.java
@@ -188,11 +188,20 @@ public abstract class PrintRenderer implements Renderer
Box b = (Box) e.nextElement();
b.render(this);
}
+ // Restore previous origin
+ this.currentYPosition = saveY;
+ this.currentAreaContainerXPosition = saveX;
+ if (area.getPosition() == Position.STATIC) {
+ this.currentYPosition -= area.getHeight();
+ }
+
+ /****
if (area.getPosition() != Position.STATIC) {
this.currentYPosition = saveY;
this.currentAreaContainerXPosition = saveX;
} else
this.currentYPosition -= area.getHeight();
+ *****/
}
public void renderBodyAreaContainer(BodyAreaContainer area) {