diff options
Diffstat (limited to 'src/org/apache/fop/render')
-rw-r--r-- | src/org/apache/fop/render/AbstractRenderer.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/apache/fop/render/AbstractRenderer.java b/src/org/apache/fop/render/AbstractRenderer.java index 2ecefd9dc..a1aceeac8 100644 --- a/src/org/apache/fop/render/AbstractRenderer.java +++ b/src/org/apache/fop/render/AbstractRenderer.java @@ -254,6 +254,8 @@ public abstract class AbstractRenderer implements Renderer { public void renderViewport(Viewport viewport) { Area content = viewport.getContent(); + int saveBP = currentBPPosition; + currentBPPosition += viewport.getOffset(); if (content instanceof Image) { renderImage((Image) content); } else if (content instanceof Container) { @@ -262,6 +264,7 @@ public abstract class AbstractRenderer implements Renderer { renderForeignObject((ForeignObject) content); } currentBlockIPPosition += viewport.getWidth(); + currentBPPosition = saveBP; } public void renderImage(Image image) { |