Code

merge inline patch from Jimmy
[inkscape.git] / src / prefs-utils.cpp
index b2b3efeb7080c8c5a5d95cf215befd873f8178bc..a8f358fafec42904b28303b02fec191bffd10bff 100644 (file)
@@ -46,7 +46,7 @@ gchar * create_pref(gchar const *father_path, gchar const *child){
     Inkscape::XML::Node *father = inkscape_get_repr(INKSCAPE, father_path);
     if (! father ) return NULL;
     Inkscape::XML::Node *repr = father->document()->createElement("group");
-    sp_repr_set_attr(repr, "id", child);
+    repr->setAttribute("id", child, false);
     father->appendChild(repr);
     return g_strdup_printf("%s.%s", father_path,child);
 }