diff options
Diffstat (limited to 'src/org/apache/fop/layout/LeaderArea.java')
-rw-r--r-- | src/org/apache/fop/layout/LeaderArea.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/apache/fop/layout/LeaderArea.java b/src/org/apache/fop/layout/LeaderArea.java index ff8b31520..3fbdd919b 100644 --- a/src/org/apache/fop/layout/LeaderArea.java +++ b/src/org/apache/fop/layout/LeaderArea.java @@ -68,10 +68,16 @@ public class LeaderArea extends InlineArea { int leaderPattern, int ruleThickness, int ruleStyle) { super(fontState, red, green, blue, text, leaderLengthOptimum); - this.ruleThickness = ruleThickness; this.leaderPattern = leaderPattern; this.leaderLengthOptimum = leaderLengthOptimum; this.ruleStyle = ruleStyle; + //following the xsl spec rule: if rule-style="none" set thickness to 0; + //actually in pdf this doesn't work, because a very thin line is still shown + //this is handled in the pdf renderer + if (ruleStyle == org.apache.fop.fo.properties.RuleStyle.NONE) { + ruleThickness = 0; + } + this.ruleThickness = ruleThickness; } public void render(Renderer renderer) { |