diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-10-02 22:15:00 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-10-02 22:15:00 +0000 |
| commit | aa6d389286f6402ef393015b000755bc3124362a (patch) | |
| tree | 81e17d682f5aade76e44bc8809e751b42dd5f773 /src/spray-context.cpp | |
| parent | Fixed a bug editing paths in others LPE -envelope- (diff) | |
| parent | Fix segment welding in the node tool hanging when a two-point segment (diff) | |
| download | inkscape-aa6d389286f6402ef393015b000755bc3124362a.tar.gz inkscape-aa6d389286f6402ef393015b000755bc3124362a.zip | |
update to trunk
(bzr r11950.1.158)
Diffstat (limited to 'src/spray-context.cpp')
| -rw-r--r-- | src/spray-context.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/spray-context.cpp b/src/spray-context.cpp index fd9aff196..6b97dcc17 100644 --- a/src/spray-context.cpp +++ b/src/spray-context.cpp @@ -499,7 +499,9 @@ static bool sp_spray_recursive(SPDesktop *desktop, // Ad the clone to the list of the father's sons parent->appendChild(clone); // Generates the link between father and son attributes - clone->setAttribute("xlink:href", g_strdup_printf("#%s", old_repr->attribute("id")), false); + gchar *href_str = g_strdup_printf("#%s", old_repr->attribute("id")); + clone->setAttribute("xlink:href", href_str, false); + g_free(href_str); SPObject *clone_object = doc->getObjectByRepr(clone); // conversion object->item |
