From 964833fe5836e90e821012542419963e448c7ca7 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Wed, 8 Jan 2014 16:29:51 -0500 Subject: Add id switch to unsymbol to stop clones from being deleted. Fixed bugs: - https://launchpad.net/bugs/1192023 (bzr r12899) --- src/selection-chemistry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/selection-chemistry.cpp') 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 ; all other elements that referenced should // auto-magically reference . - 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(sp_desktop_document(desktop)->getObjectByRepr(group)); -- cgit v1.2.3