]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix: Multiple spans now painted in the right places.
authorJeremias Maerki <jeremias@apache.org>
Wed, 29 Jun 2005 13:18:27 +0000 (13:18 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 29 Jun 2005 13:18:27 +0000 (13:18 +0000)
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

index ea7ce4da180a575066cb113f26802373443aac6f..6cc4edf1e1444e1356fbe15a10af1cb21954075f 100644 (file)
@@ -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;
     }
 
     /**