From 1898c82fb790cbb7ccc847626eeb5ac067202776 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 28 Mar 2006 01:58:29 +0000 Subject: copy rotation center when cloning (bzr r313) --- src/selection-chemistry.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/selection-chemistry.cpp') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 811e0d6bd..4da9b33b8 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -1896,6 +1896,9 @@ sp_selection_clone() 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")); // add the new clone to the top of the original's parent parent->appendChild(clone); -- cgit v1.2.3