diff options
Diffstat (limited to 'src/org/apache')
-rw-r--r-- | src/org/apache/fop/fo/flow/Block.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/org/apache/fop/fo/flow/Block.java b/src/org/apache/fop/fo/flow/Block.java index 9533fddfd..866a6553a 100644 --- a/src/org/apache/fop/fo/flow/Block.java +++ b/src/org/apache/fop/fo/flow/Block.java @@ -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); |