aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow/DisplayRule.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/fo/flow/DisplayRule.java')
-rw-r--r--src/org/apache/fop/fo/flow/DisplayRule.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/DisplayRule.java b/src/org/apache/fop/fo/flow/DisplayRule.java
index fb8467b3c..383aed223 100644
--- a/src/org/apache/fop/fo/flow/DisplayRule.java
+++ b/src/org/apache/fop/fo/flow/DisplayRule.java
@@ -115,6 +115,23 @@ public class DisplayRule extends FObj {
area.addDisplaySpace(spaceBefore);
}
+ if (this.isInLabel) {
+ startIndent += bodyIndent;
+ endIndent += (area.getAllocationWidth() -
+ distanceBetweenStarts - startIndent) +
+ labelSeparation;
+ }
+
+ if (this.isInListBody) {
+ startIndent += bodyIndent + distanceBetweenStarts;
+ }
+
+ if (this.isInTableCell) {
+ startIndent += forcedStartOffset;
+ endIndent += area.getAllocationWidth() - forcedWidth -
+ forcedStartOffset;
+ }
+
RuleArea ruleArea = new RuleArea(fs,
area.getAllocationWidth(),
area.spaceLeft(),