summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4960589)
raw | patch | inline | side by side (parent: 4960589)
author | speleo3 <speleo3@users.sourceforge.net> | |
Thu, 30 Apr 2009 08:18:23 +0000 (08:18 +0000) | ||
committer | speleo3 <speleo3@users.sourceforge.net> | |
Thu, 30 Apr 2009 08:18:23 +0000 (08:18 +0000) |
src/style.cpp | patch | blob | history |
diff --git a/src/style.cpp b/src/style.cpp
index ad4e509f6c0ca9129ebbaa350c9a35b7e16b0c5b..dd81692823123f0b45c055ebe1da5f0cb3af22ca 100644 (file)
--- a/src/style.cpp
+++ b/src/style.cpp
/* SVG */
/* Clip/Mask */
case SP_PROP_CLIP_PATH:
- g_warning("Unimplemented style property SP_PROP_CLIP_PATH: value: %s", val);
+ /** \todo
+ * This is a workaround. Inkscape only supports 'clip-path' as SVG attribute, not as
+ * style property. By having both CSS and SVG attribute set, editing of clip-path
+ * will fail, since CSS always overwrites SVG attributes.
+ * Fixes Bug #324849
+ */
+ g_warning("attribute 'clip-path' given as CSS");
+ style->object->repr->setAttribute("clip-path", val);
break;
case SP_PROP_CLIP_RULE:
g_warning("Unimplemented style property SP_PROP_CLIP_RULE: value: %s", val);
break;
case SP_PROP_MASK:
- g_warning("Unimplemented style property SP_PROP_MASK: value: %s", val);
+ /** \todo
+ * See comment for SP_PROP_CLIP_PATH
+ */
+ g_warning("attribute 'mask' given as CSS");
+ style->object->repr->setAttribute("mask", val);
break;
case SP_PROP_OPACITY:
if (!style->opacity.set) {