summaryrefslogtreecommitdiffstats
path: root/src/object/sp-item.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-11-05 22:37:54 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-11-05 22:37:54 +0000
commit8fe8df064850bdaf5cd0c6015430c4b12132c8ab (patch)
tree2ef547a667ff1f1a3ba8fc66dc8350b5ae3c4089 /src/object/sp-item.cpp
parentReplacement for xmlBuildRelativeURI (diff)
downloadinkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.tar.gz
inkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.zip
remove Inkscape::URI::toString
Diffstat (limited to 'src/object/sp-item.cpp')
-rw-r--r--src/object/sp-item.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp
index 3a641eca2..bc5922b3f 100644
--- a/src/object/sp-item.cpp
+++ b/src/object/sp-item.cpp
@@ -749,20 +749,14 @@ Inkscape::XML::Node* SPItem::write(Inkscape::XML::Document *xml_doc, Inkscape::X
if (item->clip_ref){
if (item->clip_ref->getObject()) {
- gchar *uri = item->clip_ref->getURI()->toString();
- const gchar *value = g_strdup_printf ("url(%s)", uri);
- repr->setAttribute ("clip-path", value);
- g_free ((void *) value);
- g_free ((void *) uri);
+ auto value = item->clip_ref->getURI()->cssStr();
+ repr->setAttribute("clip-path", value.c_str());
}
}
if (item->mask_ref){
if (item->mask_ref->getObject()) {
- gchar *uri = item->mask_ref->getURI()->toString();
- const gchar *value = g_strdup_printf ("url(%s)", uri);
- repr->setAttribute ("mask", value);
- g_free ((void *) value);
- g_free ((void *) uri);
+ auto value = item->clip_ref->getURI()->cssStr();
+ repr->setAttribute("mask", value.c_str());
}
}
if (item->_highlightColor){