diff options
author | Glenn Adams <gadams@apache.org> | 2012-04-07 09:24:11 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2012-04-07 09:24:11 +0000 |
commit | e1322d63fc41b169f6eb2d4b8dbe858145883818 (patch) | |
tree | 9e2a54534f7f67bb3b6bbcc3120f9d346e78e8bc /src/java | |
parent | c0a106809375dbcbc3f793cd74bdaea22edfafe3 (diff) | |
download | xmlgraphics-fop-e1322d63fc41b169f6eb2d4b8dbe858145883818.tar.gz xmlgraphics-fop-e1322d63fc41b169f6eb2d4b8dbe858145883818.zip |
Bugzilla #47380: Specified rule-thickness applies only when leader-pattern is rule, otherwise should use default thickness.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1310717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/Leader.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Leader.java b/src/java/org/apache/fop/fo/flow/Leader.java index ce166b114..4062d6562 100644 --- a/src/java/org/apache/fop/fo/flow/Leader.java +++ b/src/java/org/apache/fop/fo/flow/Leader.java @@ -79,7 +79,8 @@ public class Leader extends InlineLevel { leaderLength = pList.get(PR_LEADER_LENGTH).getLengthRange(); leaderPattern = pList.get(PR_LEADER_PATTERN).getEnum(); leaderPatternWidth = pList.get(PR_LEADER_PATTERN_WIDTH).getLength(); - ruleThickness = pList.get(PR_RULE_THICKNESS).getLength(); + // use default rule thickness as a default + ruleThickness = getPropertyMakerFor(PR_RULE_THICKNESS).make(pList).getLength(); switch(leaderPattern) { case EN_SPACE: // use Space @@ -88,6 +89,8 @@ public class Leader extends InlineLevel { // the following properties only apply // for leader-pattern = "rule" ruleStyle = pList.get(PR_RULE_STYLE).getEnum(); + // use specified rule thickness to override default (established above) + ruleThickness = pList.get(PR_RULE_THICKNESS).getLength(); break; case EN_DOTS: break; |