From: Jeremias Maerki Date: Fri, 11 Nov 2005 17:27:17 +0000 (+0000) Subject: Bugzilla #37468: X-Git-Tag: fop-0_90-alpha1~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=02111e67f0879a2b424e0f88e35d2fcd8961bbf6;p=xmlgraphics-fop.git Bugzilla #37468: 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 --- diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java index dc793611b..9180c626e 100644 --- a/src/java/org/apache/fop/render/AbstractRenderer.java +++ b/src/java/org/apache/fop/render/AbstractRenderer.java @@ -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;