summaryrefslogtreecommitdiffstats
path: root/src/id-clash.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-09-03 06:35:01 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-09-03 06:35:01 +0000
commitd4f5006264e2e19a9fe50968a2e422b83785821c (patch)
tree934174c6829e8a96dbffa5f6207d462723fbedca /src/id-clash.cpp
parentFix for 422644 : Show filename in statusbar on saving (diff)
downloadinkscape-d4f5006264e2e19a9fe50968a2e422b83785821c.tar.gz
inkscape-d4f5006264e2e19a9fe50968a2e422b83785821c.zip
revert rev 11646: build issue with dbus (forgot to adapt some more, dbus was not enabled) and other issues
(bzr r11649)
Diffstat (limited to 'src/id-clash.cpp')
-rw-r--r--src/id-clash.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/id-clash.cpp b/src/id-clash.cpp
index 05af32be8..d8299652b 100644
--- a/src/id-clash.cpp
+++ b/src/id-clash.cpp
@@ -259,9 +259,10 @@ fix_up_refs(const refmap_type *refmap, const id_changelist_type &id_changes)
gchar *url = g_strdup_printf("url(#%s)", obj->getId());
sp_repr_css_set_property(style, it->attr, url);
g_free(url);
- Glib::ustring style_string;
- sp_repr_css_write_string(style, style_string);
- it->elem->getRepr()->setAttribute("style", style_string.c_str());
+ gchar *style_string = sp_repr_css_write_string(style);
+ it->elem->getRepr()->setAttribute("style", style_string);
+ g_free(style_string);
+
} else {
g_assert(0); // shouldn't happen
}