From: Jeremias Maerki Date: Wed, 12 Oct 2005 07:21:51 +0000 (+0000) Subject: Color trait wasn't set on the text area for the "dots" leader pattern. This could... X-Git-Tag: fop-0_90-alpha1~143 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0129397f8aebdbef7eb47695dbbc60e699c649d7;p=xmlgraphics-fop.git Color trait wasn't set on the text area for the "dots" leader pattern. This could lead to hidden dots if a background was specified. As seen in leader_leader-pattern_dots.xml. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@314808 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/inline/LeaderLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/LeaderLayoutManager.java index c853bf76e..162397217 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/LeaderLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/LeaderLayoutManager.java @@ -135,6 +135,7 @@ public class LeaderLayoutManager extends LeafNodeLayoutManager { t.setBaselineOffset(width); t.addTrait(Trait.FONT_NAME, font.getFontName()); t.addTrait(Trait.FONT_SIZE, new Integer(font.getFontSize())); + t.addTrait(Trait.COLOR, fobj.getColor()); Space spacer = null; if (fobj.getLeaderPatternWidth().getValue(this) > width) { spacer = new Space();