aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-09-16 08:10:59 +0000
committerJeremias Maerki <jeremias@apache.org>2005-09-16 08:10:59 +0000
commitf91c97e34d6bae1dc15795d7fac614fc85b300cd (patch)
tree006ef010bf8f2d4a7bb914f6cc0da908eb1787b7 /src/java/org
parent56ff9ca78fb1eb7e98681a082966b0510fd3d39e (diff)
downloadxmlgraphics-fop-f91c97e34d6bae1dc15795d7fac614fc85b300cd.tar.gz
xmlgraphics-fop-f91c97e34d6bae1dc15795d7fac614fc85b300cd.zip
Bugfix: Lengths evaluated through percentages evaluated to zero in side-regions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@289426 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
index 5e1bd6511..324234482 100644
--- a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
@@ -71,10 +71,13 @@ public class StaticContentLayoutManager extends BlockStackingLayoutManager {
targetBlock = block;
}
- /**
- * @see org.apache.fop.layoutmgr.LayoutManager#getNextKnuthElements(org.apache.fop.layoutmgr.LayoutContext, int)
- */
+ /** @see org.apache.fop.layoutmgr.LayoutManager */
public LinkedList getNextKnuthElements(LayoutContext context, int alignment) {
+ if (true) {
+ throw new UnsupportedOperationException(
+ "Shouldn't this method be emptied because it's never called at all?");
+ }
+ //TODO Empty this method?!?
// set layout dimensions
setContentAreaIPD(context.getRefIPD());
setContentAreaBPD(context.getStackLimit().opt);
@@ -214,6 +217,8 @@ public class StaticContentLayoutManager extends BlockStackingLayoutManager {
targetBPD = targetRegion.getBPD();
targetAlign = regionFO.getDisplayAlign();
}
+ setContentAreaIPD(targetIPD);
+ setContentAreaBPD(targetBPD);
breaker = new StaticContentBreaker(this, targetIPD, targetAlign);
breaker.doLayout(targetBPD);
if (breaker.isOverflow()) {
@@ -326,6 +331,7 @@ public class StaticContentLayoutManager extends BlockStackingLayoutManager {
return contentAreaIPD;
}
+ /** @see org.apache.fop.layoutmgr.BlockStackingLayoutManager#setContentAreaIPD(int) */
protected void setContentAreaIPD(int contentAreaIPD) {
this.contentAreaIPD = contentAreaIPD;
}