diff options
-rw-r--r-- | src/main/java/com/kitfox/svg/xml/ColorTable.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/svg/xml/ColorTable.java b/src/main/java/com/kitfox/svg/xml/ColorTable.java index f3db3b2..0afea87 100644 --- a/src/main/java/com/kitfox/svg/xml/ColorTable.java +++ b/src/main/java/com/kitfox/svg/xml/ColorTable.java @@ -42,6 +42,12 @@ public class ColorTable static final Map colorTable;
static {
HashMap table = new HashMap();
+
+ //We really should be interpreting the currentColor keyword as
+ // a reference to the referrring node's color, but this quick hack
+ // will stop the program from crashing.
+ table.put("currentColor", new Color(0x0));
+
table.put("aliceblue", new Color(0xf0f8ff));
table.put("antiquewhite", new Color(0xfaebd7));
table.put("aqua", new Color(0x00ffff));
|