From 928f75ac05669aac5cee811e8c74a0348836caae Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Sun, 1 Dec 2002 14:29:38 +0000 Subject: [PATCH] Added property index arg to getColor(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195690 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/properties/ColorCommon.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/org/apache/fop/fo/properties/ColorCommon.java b/src/org/apache/fop/fo/properties/ColorCommon.java index 92877c100..0dac3c879 100644 --- a/src/org/apache/fop/fo/properties/ColorCommon.java +++ b/src/org/apache/fop/fo/properties/ColorCommon.java @@ -61,14 +61,15 @@ public class ColorCommon extends Property { * The argument must be either a ColorType already, in which case * it is returned unchanged, or an NCName whose string value is a * standard color or 'transparent'. + * @param propindex the index of the property to which this value is + * being applied. * @param value PropertyValue * @return ColorValue equivalent of the argument * @exception PropertyException */ - protected static ColorType getColor(PropertyValue value) + protected static ColorType getColor(int property, PropertyValue value) throws PropertyException { - int property = value.getProperty(); int type = value.getType(); if (type == PropertyValue.COLOR_TYPE) return (ColorType)value; // Must be a color enum @@ -147,7 +148,7 @@ public class ColorCommon extends Property { case PropertyValue.COLOR_TYPE: return value; case PropertyValue.NCNAME: - return getColor(value); + return getColor(propindex, value); default: PropertyValue pv; switch (type) { -- 2.39.5