diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-05-30 19:33:40 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-05-30 19:33:40 +0000 |
| commit | a554ab3073df4f870a8b103137225d2cbe64b4ac (patch) | |
| tree | c67b5ed5e813e36c1534aef7b90da491cffc292a /src | |
| parent | (bzr r1087) (diff) | |
| download | inkscape-a554ab3073df4f870a8b103137225d2cbe64b4ac.tar.gz inkscape-a554ab3073df4f870a8b103137225d2cbe64b4ac.zip | |
fix writing clip/mask references
(bzr r1088)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-item.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 3d71443d6..401af10b6 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -691,6 +691,17 @@ sp_item_write(SPObject *const object, Inkscape::XML::Node *repr, guint flags) repr->setAttribute ("inkscape:transform-center-y", NULL); } + if (item->clip_ref->getObject()) { + const gchar *value = g_strdup_printf ("url(%s)", item->clip_ref->getURI()->toString()); + repr->setAttribute ("clip-path", value); + g_free ((void *) value); + } + if (item->mask_ref->getObject()) { + const gchar *value = g_strdup_printf ("url(%s)", item->mask_ref->getURI()->toString()); + repr->setAttribute ("mask", value); + g_free ((void *) value); + } + if (((SPObjectClass *) (parent_class))->write) { ((SPObjectClass *) (parent_class))->write(object, repr, flags); } |
