diff options
| author | Thomas Holder <speleo3@users.sourceforge.net> | 2009-04-30 08:18:23 +0000 |
|---|---|---|
| committer | speleo3 <speleo3@users.sourceforge.net> | 2009-04-30 08:18:23 +0000 |
| commit | 017102557e88d5b7e19e29ddc259b9f50b0d4010 (patch) | |
| tree | b8ccaeefd2b8b3f9fb3e4f02fd4406551b4f1fff /src/style.cpp | |
| parent | Make sure that the item center (origin for rotations) does not change due to ... (diff) | |
| download | inkscape-017102557e88d5b7e19e29ddc259b9f50b0d4010.tar.gz inkscape-017102557e88d5b7e19e29ddc259b9f50b0d4010.zip | |
workaround for 'clip-path' and 'mask' given as style properties (bug #324849)
(bzr r7798)
Diffstat (limited to 'src/style.cpp')
| -rw-r--r-- | src/style.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/style.cpp b/src/style.cpp index ad4e509f6..dd8169282 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -994,13 +994,24 @@ sp_style_merge_property(SPStyle *style, gint id, gchar const *val) /* 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) { |
