From: Peter Bernard West Date: Sun, 1 Dec 2002 14:28:46 +0000 (+0000) Subject: Property index arg added to getColor() calls. X-Git-Tag: Alt-Design_pre_src-java-org~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f2c3ddc4ebb790d105cc4d1120ec6dac6c2295f;p=xmlgraphics-fop.git Property index arg added to getColor() calls. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195689 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fo/properties/BorderColor.java b/src/org/apache/fop/fo/properties/BorderColor.java index 9d1ef3a84..c2b98f6d1 100644 --- a/src/org/apache/fop/fo/properties/BorderColor.java +++ b/src/org/apache/fop/fo/properties/BorderColor.java @@ -102,11 +102,14 @@ public class BorderColor extends ColorTransparent { Iterator colors = list.iterator(); // There must be at least one - top = getColor((PropertyValue)(colors.next())); + top = getColor(PropNames.BORDER_TOP_COLOR, + (PropertyValue)(colors.next())); try { if (colors.hasNext()) - right = getColor((PropertyValue)(colors.next())); + right = getColor + (PropNames.BORDER_RIGHT_COLOR, + (PropertyValue)(colors.next())); else right = (ColorType)(top.clone()); @@ -118,12 +121,15 @@ public class BorderColor extends ColorTransparent { } if (colors.hasNext()) - bottom = getColor((PropertyValue)(colors.next())); + bottom = getColor + (PropNames.BORDER_BOTTOM_COLOR, + (PropertyValue)(colors.next())); if (colors.hasNext()) - left = getColor((PropertyValue)(colors.next())); + left = getColor + (PropNames.BORDER_LEFT_COLOR, + (PropertyValue)(colors.next())); // Set the properties for each - top.setProperty(PropNames.BORDER_TOP_COLOR); right.setProperty(PropNames.BORDER_RIGHT_COLOR); bottom.setProperty(PropNames.BORDER_BOTTOM_COLOR); left.setProperty(PropNames.BORDER_LEFT_COLOR);