aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-06-05 07:41:06 +0000
committerJeremias Maerki <jeremias@apache.org>2008-06-05 07:41:06 +0000
commit2b6ba7bf56c399fb84604f191e95a2e4d0bf6fdb (patch)
tree8a582527cd9db29e742e0195865c572089b36d5f /src
parent37d4c4b7aa0cc8983adea4036ddb84e68b909dd3 (diff)
downloadxmlgraphics-fop-2b6ba7bf56c399fb84604f191e95a2e4d0bf6fdb.tar.gz
xmlgraphics-fop-2b6ba7bf56c399fb84604f191e95a2e4d0bf6fdb.zip
Restored lost overflow warning in static-content.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@663493 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
index 42ddcc220..8065f9aad 100644
--- a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
@@ -364,6 +364,12 @@ public class StaticContentLayoutManager extends BlockStackingLayoutManager {
protected void doPhase3(PageBreakingAlgorithm alg, int partCount,
BlockSequence originalList, BlockSequence effectiveList) {
+ if (partCount > 1) {
+ PageBreakPosition pos = (PageBreakPosition)alg.getPageBreaks().getFirst();
+ int firstPartLength = ElementListUtils.calcContentLength(effectiveList,
+ effectiveList.ignoreAtStart, pos.getLeafPos());
+ overflow += alg.totalWidth - firstPartLength;
+ }
//Rendering all parts (not just the first) at once for the case where the parts that
//overflow should be visible.
alg.removeAllPageBreaks();