]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #37468:
authorJeremias Maerki <jeremias@apache.org>
Fri, 11 Nov 2005 17:27:17 +0000 (17:27 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 11 Nov 2005 17:27:17 +0000 (17:27 +0000)
Placement of flows in multi-column documents was wrong. The area tree is correct, however. Bug in AbstractRenderer. Simpler is sometimes better.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332614 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/AbstractRenderer.java

index dc793611b549d0dfc4c1400add36ec3a6769c5fa..9180c626ed05af584ace5411d5dcc7d8a36d22be 100644 (file)
@@ -379,9 +379,6 @@ public abstract class AbstractRenderer
         int saveSpanBPPos = saveBPPos;
         for (int count = 0; count < spans.size(); count++) {
             span = (Span) spans.get(count);
-            int offset = (mr.getWidth()
-                    - (mr.getColumnCount() - 1) * mr.getColumnGap())
-                    / mr.getColumnCount() + mr.getColumnGap();
             for (int c = 0; c < span.getColumnCount(); c++) {
                 NormalFlow flow = (NormalFlow) span.getNormalFlow(c);
 
@@ -389,7 +386,7 @@ public abstract class AbstractRenderer
                     currentBPPosition = saveSpanBPPos;
                     renderFlow(flow);
                     currentIPPosition += flow.getIPD();
-                    currentIPPosition += offset;
+                    currentIPPosition += mr.getColumnGap();
                 }
             }
             currentIPPosition = saveIPPos;