diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-09-05 21:35:18 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-09-05 21:35:18 +0000 |
| commit | ab24d531e2f4ba6b9547df7ec2b23742e9d260f9 (patch) | |
| tree | d59e0412e05840c6588bf7febe01987e3de5d863 /src/selection-chemistry.cpp | |
| parent | Fix z-order in creating symbols (diff) | |
| download | inkscape-ab24d531e2f4ba6b9547df7ec2b23742e9d260f9.tar.gz inkscape-ab24d531e2f4ba6b9547df7ec2b23742e9d260f9.zip | |
better ordering of setting the ids in the group to symbol code
Fixed bugs:
- https://launchpad.net/bugs/1492615
(bzr r14343)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |
