diff options
Diffstat (limited to 'src/object/sp-tref.cpp')
| -rw-r--r-- | src/object/sp-tref.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/sp-tref.cpp b/src/object/sp-tref.cpp index c3db8780f..ef5b6c106 100644 --- a/src/object/sp-tref.cpp +++ b/src/object/sp-tref.cpp @@ -173,10 +173,10 @@ Inkscape::XML::Node* SPTRef::write(Inkscape::XML::Document *xml_doc, Inkscape::X this->attributes.writeTo(repr); if (this->uriOriginalRef->getURI()) { - gchar *uri_string = this->uriOriginalRef->getURI()->toString(); + auto uri = this->uriOriginalRef->getURI()->str(); + auto uri_string = uri.c_str(); debug("uri_string=%s", uri_string); repr->setAttribute("xlink:href", uri_string); - g_free(uri_string); } SPItem::write(xml_doc, repr, flags); |
