]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added property index arg to getColor().
authorPeter Bernard West <pbwest@apache.org>
Sun, 1 Dec 2002 14:29:38 +0000 (14:29 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sun, 1 Dec 2002 14:29:38 +0000 (14:29 +0000)
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

index 92877c10023abe9c66df2a72f15390d7e6bfe401..0dac3c879f5fd0079cab4da8162cbf8b0d7918e5 100644 (file)
@@ -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 <tt>PropertyValue</tt>
      * @return <tt>ColorValue</tt> equivalent of the argument
      * @exception <tt>PropertyException</tt>
      */
-    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) {