summaryrefslogtreecommitdiffstats
path: root/src/dialogs/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/input.cpp')
-rw-r--r--src/dialogs/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/input.cpp b/src/dialogs/input.cpp
index 8d6ff399d..21a6ea4a7 100644
--- a/src/dialogs/input.cpp
+++ b/src/dialogs/input.cpp
@@ -165,7 +165,7 @@ sp_input_save_to_preferences (void)
repr = sp_repr_lookup_child(devices, "id", device->name);
if (repr == NULL) {
- repr = sp_repr_new("group");
+ repr = devices->document()->createElement("group");
repr->setAttribute("id", device->name);
devices->appendChild(repr);
Inkscape::GC::release(repr);