diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-11 17:27:17 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-11 17:27:17 +0000 |
commit | 02111e67f0879a2b424e0f88e35d2fcd8961bbf6 (patch) | |
tree | c1bb7b811163c51c4c58679bf1c8e81e5f579926 /src/java/org | |
parent | 6f2c345eb1501735aff9bd787841ebce46ee0cb8 (diff) | |
download | xmlgraphics-fop-02111e67f0879a2b424e0f88e35d2fcd8961bbf6.tar.gz xmlgraphics-fop-02111e67f0879a2b424e0f88e35d2fcd8961bbf6.zip |
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
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/render/AbstractRenderer.java | 5 |
1 files changed, 1 insertions, 4 deletions
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; |