]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #47380: Specified rule-thickness applies only when leader-pattern is rule...
authorGlenn Adams <gadams@apache.org>
Sat, 7 Apr 2012 09:24:11 +0000 (09:24 +0000)
committerGlenn Adams <gadams@apache.org>
Sat, 7 Apr 2012 09:24:11 +0000 (09:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1310717 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/flow/Leader.java
status.xml

index ce166b11412320e5804b31a374d4c143fbc9b023..4062d65629a4501e127cefab924dcf1f27f34b5d 100644 (file)
@@ -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;
index 27a82c2a0a6a99cd759ffd000e4ed1e0641211f0..a00e11f590f9fd368ee1240376199eeeee32066e 100644 (file)
@@ -62,6 +62,9 @@
       documents. Example: the fix of marks layering will be such a case when it's done.
     -->
     <release version="FOP Trunk" date="TBD">
+      <action context="Code" dev="GA" type="fix" fixes-bug="47380" due-to="Georg Datterl">
+        Specified rule-thickness applies only when leader-pattern is rule, otherwise should use default thickness.
+      </action>
       <action context="Code" dev="GA" type="fix" fixes-bug="49302" due-to="Julien AymĂ©">
         Eliminate duplicate code.
       </action>