summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/kitfox/svg/RenderableElement.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/kitfox/svg/RenderableElement.java b/src/main/java/com/kitfox/svg/RenderableElement.java
index 8ae0bfc..ef3948d 100644
--- a/src/main/java/com/kitfox/svg/RenderableElement.java
+++ b/src/main/java/com/kitfox/svg/RenderableElement.java
@@ -125,7 +125,8 @@ abstract public class RenderableElement extends TransformableElement
// StyleAttribute styleAttrib = getStyle("clip-path", false);
Shape clipPath = null;
int clipPathUnits = ClipPath.CP_USER_SPACE_ON_USE;
- if (getStyle(styleAttrib.setName("clip-path"), false))
+ if (getStyle(styleAttrib.setName("clip-path"), false)
+ && !"none".equals(styleAttrib.getStringValue()))
{
URI uri = styleAttrib.getURIValue(getXMLBase());
if (uri != null)