]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix a bug which caused FOP to overestimate the space available for the first line...
authorKaren Lease <klease@apache.org>
Wed, 4 Jul 2001 21:10:47 +0000 (21:10 +0000)
committerKaren Lease <klease@apache.org>
Wed, 4 Jul 2001 21:10:47 +0000 (21:10 +0000)
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

index 105d5bd95dbc2032028d7d5b6240c09ea221a883..891a7cfde51fa8bbf8b3696986d46d6d7f1a69b9 100644 (file)
@@ -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);