]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Property index arg added to getColor() calls.
authorPeter Bernard West <pbwest@apache.org>
Sun, 1 Dec 2002 14:28:46 +0000 (14:28 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sun, 1 Dec 2002 14:28:46 +0000 (14:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195689 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/properties/BorderColor.java

index 9d1ef3a8413d9e59559f3a5c9728111cc3c9abf7..c2b98f6d166b64b5981e8046135f9e1594c84170 100644 (file)
@@ -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);