summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-03-28 01:58:29 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-03-28 01:58:29 +0000
commit1898c82fb790cbb7ccc847626eeb5ac067202776 (patch)
treeae4f0e00fd84e541fda2ba0915ea9d5e11e7c5f3 /src
parentfix 1367204 (diff)
downloadinkscape-1898c82fb790cbb7ccc847626eeb5ac067202776.tar.gz
inkscape-1898c82fb790cbb7ccc847626eeb5ac067202776.zip
copy rotation center when cloning
(bzr r313)
Diffstat (limited to 'src')
-rw-r--r--src/selection-chemistry.cpp3
1 files changed, 3 insertions, 0 deletions
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);