summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp3
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));