diff options
| author | Martin Owens <doctormo@gmail.com> | 2014-01-08 21:29:51 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2014-01-08 21:29:51 +0000 |
| commit | 964833fe5836e90e821012542419963e448c7ca7 (patch) | |
| tree | 3117eacc1800dddb45064f948ea5c8f742d0dc26 /src/selection-chemistry.cpp | |
| parent | comment-out unused code (diff) | |
| download | inkscape-964833fe5836e90e821012542419963e448c7ca7.tar.gz inkscape-964833fe5836e90e821012542419963e448c7ca7.zip | |
Add id switch to unsymbol to stop clones from being deleted.
Fixed bugs:
- https://launchpad.net/bugs/1192023
(bzr r12899)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index aa8c1d222..f9649d62f 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -3072,8 +3072,9 @@ void sp_selection_unsymbol(SPDesktop *desktop) // Need to delete <symbol>; all other <use> elements that referenced <symbol> should // auto-magically reference <g>. - symbol->deleteObject(true); + symbol->setAttribute("id","todelete"); group->setAttribute("id",id.c_str()); // After we delete symbol with same id. + symbol->deleteObject(true); parent->getRepr()->appendChild(group); SPItem *group_item = static_cast<SPItem *>(sp_desktop_document(desktop)->getObjectByRepr(group)); |
