diff --git a/src/prefs-utils.cpp b/src/prefs-utils.cpp
index b2b3efeb7080c8c5a5d95cf215befd873f8178bc..a8f358fafec42904b28303b02fec191bffd10bff 100644 (file)
--- a/src/prefs-utils.cpp
+++ b/src/prefs-utils.cpp
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);
}