summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 854ccfb)
raw | patch | inline | side by side (parent: 854ccfb)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 30 May 2006 19:33:40 +0000 (19:33 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 30 May 2006 19:33:40 +0000 (19:33 +0000) |
src/sp-item.cpp | patch | blob | history |
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 3d71443d63f6400055336c2bcea4314def8dbbaf..401af10b64dd812748292b575bb37683e27a7fac 100644 (file)
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
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);
}