summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkitfox2011-05-19 16:12:32 +0200
committerkitfox2011-05-19 16:12:32 +0200
commit42209f20f4ae29ec45ccffe281a57fbf767fb50f (patch)
treeb77431cedb5b804e6503a4675ee0eafd55823d86
parentTweaking pom.xml again. (diff)
downloadsvg-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.java7
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;