From: buliabyak Date: Tue, 28 Mar 2006 01:58:29 +0000 (+0000) Subject: copy rotation center when cloning X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f949270b90a7c2c806e5c06ee4e399ad2eb47654;p=inkscape.git copy rotation center when cloning --- 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);