diff options
author | kitfox | 2011-05-19 16:12:32 +0200 |
---|---|---|
committer | kitfox | 2011-05-19 16:12:32 +0200 |
commit | 42209f20f4ae29ec45ccffe281a57fbf767fb50f (patch) | |
tree | b77431cedb5b804e6503a4675ee0eafd55823d86 | |
parent | Tweaking pom.xml again. (diff) | |
download | svg-salamander-core-42209f20f4ae29ec45ccffe281a57fbf767fb50f.tar.gz svg-salamander-core-42209f20f4ae29ec45ccffe281a57fbf767fb50f.tar.xz svg-salamander-core-42209f20f4ae29ec45ccffe281a57fbf767fb50f.zip |
Adding bugfix for markers with "none" attribute.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@96 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
-rw-r--r-- | src/main/java/com/kitfox/svg/ShapeElement.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/com/kitfox/svg/ShapeElement.java b/src/main/java/com/kitfox/svg/ShapeElement.java index f55ff15..207e096 100644 --- a/src/main/java/com/kitfox/svg/ShapeElement.java +++ b/src/main/java/com/kitfox/svg/ShapeElement.java @@ -237,8 +237,11 @@ abstract public class ShapeElement extends RenderableElement Marker markerStart = null;
if (getStyle(styleAttrib.setName("marker-start")))
{
- URI uri = styleAttrib.getURIValue(getXMLBase());
- markerStart = (Marker)diagram.getUniverse().getElement(uri);
+ if (!styleAttrib.getStringValue().equals("none"))
+ {
+ URI uri = styleAttrib.getURIValue(getXMLBase());
+ markerStart = (Marker)diagram.getUniverse().getElement(uri);
+ }
}
Marker markerMid = null;
|