summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2008-05-08 13:05:51 +0000
committermental <mental@users.sourceforge.net>2008-05-08 13:05:51 +0000
commit8b71ee28d6d834eacf8853822b7c667f5c8eb21f (patch)
tree0a9db9f3c5fc645f4d9a2746f1d020882cd5db33 /src/selection-chemistry.cpp
parentset eol-style:native for newly added files (diff)
downloadinkscape-8b71ee28d6d834eacf8853822b7c667f5c8eb21f.tar.gz
inkscape-8b71ee28d6d834eacf8853822b7c667f5c8eb21f.zip
merge inline patch from Jimmy
(bzr r5631)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 09c086f46..0f8946441 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -1203,7 +1203,7 @@ void sp_selection_remove_transform()
GSList const *l = (GSList *) selection->reprList();
while (l != NULL) {
- sp_repr_set_attr((Inkscape::XML::Node*)l->data, "transform", NULL);
+ ((Inkscape::XML::Node*)l->data)->setAttribute("transform", NULL, false);
l = l->next;
}
@@ -1810,12 +1810,12 @@ sp_selection_clone()
Inkscape::XML::Node *parent = sp_repr_parent(sel_repr);
Inkscape::XML::Node *clone = xml_doc->createElement("svg:use");
- sp_repr_set_attr(clone, "x", "0");
- sp_repr_set_attr(clone, "y", "0");
- sp_repr_set_attr(clone, "xlink:href", g_strdup_printf("#%s", sel_repr->attribute("id")));
-
- sp_repr_set_attr(clone, "inkscape:transform-center-x", sel_repr->attribute("inkscape:transform-center-x"));
- sp_repr_set_attr(clone, "inkscape:transform-center-y", sel_repr->attribute("inkscape:transform-center-y"));
+ clone->setAttribute("x", "0", false);
+ clone->setAttribute("y", "0", false);
+ clone->setAttribute("xlink:href", g_strdup_printf("#%s", sel_repr->attribute("id")), false);
+
+ clone->setAttribute("inkscape:transform-center-x", sel_repr->attribute("inkscape:transform-center-x"), false);
+ clone->setAttribute("inkscape:transform-center-y", sel_repr->attribute("inkscape:transform-center-y"), false);
// add the new clone to the top of the original's parent
parent->appendChild(clone);