summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;