summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorkitfox2013-03-23 17:45:56 +0100
committerkitfox2013-03-23 17:45:56 +0100
commit03e3f1a5ae71557616d7fd710af64cb772fee1dc (patch)
tree4d1b26a440b863961deb2640757b69f88dd066e9 /src/main
parentAdding support for style sheets. (diff)
downloadsvg-salamander-core-03e3f1a5ae71557616d7fd710af64cb772fee1dc.tar.gz
svg-salamander-core-03e3f1a5ae71557616d7fd710af64cb772fee1dc.tar.xz
svg-salamander-core-03e3f1a5ae71557616d7fd710af64cb772fee1dc.zip
clip-path can now handle "none".
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@154 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main')
-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)