From ab24d531e2f4ba6b9547df7ec2b23742e9d260f9 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Sat, 5 Sep 2015 23:35:18 +0200 Subject: better ordering of setting the ids in the group to symbol code Fixed bugs: - https://launchpad.net/bugs/1492615 (bzr r14343) --- src/selection-chemistry.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index cfd76c758..c26a5bc4a 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -3106,6 +3106,8 @@ void sp_selection_symbol(SPDesktop *desktop, bool /*apply*/ ) symbol_repr->setAttribute("style", the_group->getAttribute("style")); symbol_repr->setAttribute("class", the_group->getAttribute("class")); + Glib::ustring id = the_group->getAttribute("id"); + the_group->setAttribute("id", id + "_transform"); symbol_repr->setAttribute("id", the_group->getAttribute("id") ); // This should eventually be replaced by 'refX' and 'refY' once SVG WG approves it. @@ -3116,9 +3118,6 @@ void sp_selection_symbol(SPDesktop *desktop, bool /*apply*/ ) the_group->getAttribute("inkscape:transform-center-y")); the_group->setAttribute("style", NULL); - Glib::ustring id = symbol_repr->attribute("id"); - id += "_transform"; - the_group->setAttribute("id", id); } -- cgit v1.2.3