From bf2a376d1701ef547785186a0562fd709447ed4a Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Wed, 4 Jul 2001 21:10:47 +0000 Subject: Fix a bug which caused FOP to overestimate the space available for the first line of a Block git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194331 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/layout/BlockArea.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/apache/fop/layout/BlockArea.java b/src/org/apache/fop/layout/BlockArea.java index 105d5bd95..891a7cfde 100644 --- a/src/org/apache/fop/layout/BlockArea.java +++ b/src/org/apache/fop/layout/BlockArea.java @@ -122,7 +122,7 @@ public class BlockArea extends Area { * @return the line area to be used to add inlie objects */ public LineArea getCurrentLineArea() { - if (currentHeight + this.currentLineArea.getHeight() > maxHeight) { + if (currentHeight + lineHeight > maxHeight) { return null; } this.currentLineArea.changeHyphenation(hyphProps); -- cgit v1.2.3