diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/kitfox/svg/app/beans/SVGIcon.java | 5 | ||||
-rw-r--r-- | src/main/java/com/kitfox/svg/xml/ColorTable.java | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/com/kitfox/svg/app/beans/SVGIcon.java b/src/main/java/com/kitfox/svg/app/beans/SVGIcon.java index 30380e5..266e3a4 100644 --- a/src/main/java/com/kitfox/svg/app/beans/SVGIcon.java +++ b/src/main/java/com/kitfox/svg/app/beans/SVGIcon.java @@ -53,7 +53,7 @@ public class SVGIcon implements Icon public static final String PROP_AUTOSIZE = "PROP_AUTOSIZE";
- private PropertyChangeSupport changes = new PropertyChangeSupport(this);
+ private final PropertyChangeSupport changes = new PropertyChangeSupport(this);
SVGUniverse svgUniverse = SVGCache.getSVGUniverse();
public static final int INTERP_NEAREST_NEIGHBOR = 0;
@@ -64,7 +64,6 @@ public class SVGIcon implements Icon private int interpolation = INTERP_NEAREST_NEIGHBOR;
private boolean clipToViewbox;
-// private String svgPath;
URI svgURI;
// private boolean scaleToFit;
@@ -77,7 +76,6 @@ public class SVGIcon implements Icon public static final int AUTOSIZE_STRETCH = 4;
private int autosize = AUTOSIZE_NONE;
-// Dimension preferredSize = new Dimension(100, 100);
Dimension preferredSize;
/** Creates a new instance of SVGIcon */
@@ -184,7 +182,6 @@ public class SVGIcon implements Icon }
-
if (autosize == AUTOSIZE_NONE)
{
try
diff --git a/src/main/java/com/kitfox/svg/xml/ColorTable.java b/src/main/java/com/kitfox/svg/xml/ColorTable.java index 84a0409..32788a4 100644 --- a/src/main/java/com/kitfox/svg/xml/ColorTable.java +++ b/src/main/java/com/kitfox/svg/xml/ColorTable.java @@ -224,6 +224,11 @@ public class ColorTable {
Color retVal = null;
+ if ("".equals(val))
+ {
+ return null;
+ }
+
if (val.charAt(0) == '#')
{
String hexStrn = val.substring(1);
|