diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-01-04 15:52:07 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-01-04 15:52:07 +0000 |
commit | 2821415e8cc83e563c69a0d35a60087a2255c768 (patch) | |
tree | 9dd676b63976d0a90bbbb547efe477e5097b8eea /src/java/org | |
parent | 38dfdc657100ec779a83334c0ee7ced38f3b4d4c (diff) | |
download | xmlgraphics-fop-2821415e8cc83e563c69a0d35a60087a2255c768.tar.gz xmlgraphics-fop-2821415e8cc83e563c69a0d35a60087a2255c768.zip |
Bugzilla #38102:
Bugfix: Space was not adjusted if the space was on a nested block. This could lead to content overflowing the bottom of a page.
I guess I will need to check if other addArea() methods suffer from the same defect.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365928 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java index 631aacf32..0db92b30f 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2005 The Apache Software Foundation. + * Copyright 1999-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -/* $Id: BlockLayoutManager.java,v 1.19 2004/05/26 04:22:39 gmazza Exp $ */ +/* $Id$ */ package org.apache.fop.layoutmgr; @@ -242,6 +242,7 @@ public class BlockLayoutManager extends BlockStackingLayoutManager LayoutManager childLM = null; LayoutManager lastLM = null; LayoutContext lc = new LayoutContext(0); + lc.setSpaceAdjust(layoutContext.getSpaceAdjust()); // set space after in the LayoutContext for children if (layoutContext.getSpaceAfter() > 0) { lc.setSpaceAfter(layoutContext.getSpaceAfter()); |