]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
This applies Christer Moren's nested list bug
authorSteve Coffman <gears@apache.org>
Thu, 9 Nov 2000 17:03:49 +0000 (17:03 +0000)
committerSteve Coffman <gears@apache.org>
Thu, 9 Nov 2000 17:03:49 +0000 (17:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193756 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/Block.java

index 9533fddfdd0927baa84b78155e478d392658bdf3..866a6553a1443001bd674d6110de0fa57a437006 100644 (file)
@@ -224,15 +224,14 @@ public class Block extends FObjMixed {
            if (area instanceof BlockArea) {
                area.end();
            }
-           if (this.isInLabel) {
-               startIndent += bodyIndent;
-               endIndent += (area.getAllocationWidth()
+        if (this.isInLabel) {
+                       startIndent += bodyIndent;
+                       endIndent += (area.getAllocationWidth()
                              - distanceBetweenStarts - startIndent)
                    + labelSeparation;
            }
-
-           if (this.isInListBody) {
-               startIndent += bodyIndent + distanceBetweenStarts;
+           else if (this.isInListBody) {
+                       startIndent += bodyIndent + distanceBetweenStarts;
            }
 
             area.getIDReferences().createID(id);