From f384710ff92f06f51f86b22ce3ec91fd3d3c8fea Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 29 Jun 2005 13:18:27 +0000 Subject: [PATCH] Bugfix: Multiple spans now painted in the right places. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@202370 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/AbstractRenderer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java index ea7ce4da1..6cc4edf1e 100644 --- a/src/java/org/apache/fop/render/AbstractRenderer.java +++ b/src/java/org/apache/fop/render/AbstractRenderer.java @@ -376,6 +376,7 @@ public abstract class AbstractRenderer Span span = null; List spans = mr.getSpans(); int saveBPPos = currentBPPosition; + int saveSpanBPPos = saveBPPos; for (int count = 0; count < spans.size(); count++) { span = (Span) spans.get(count); int offset = (mr.getWidth() @@ -385,7 +386,7 @@ public abstract class AbstractRenderer NormalFlow flow = (NormalFlow) span.getNormalFlow(c); if (flow != null) { - currentBPPosition = saveBPPos; + currentBPPosition = saveSpanBPPos; renderFlow(flow); currentIPPosition += flow.getIPD(); currentIPPosition += offset; @@ -393,7 +394,9 @@ public abstract class AbstractRenderer } currentIPPosition = saveIPPos; currentBPPosition = saveBPPos + span.getHeight(); + saveSpanBPPos = currentBPPosition; } + currentBPPosition = saveBPPos; } /** -- 2.39.5