aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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) {