summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c45e6ca)
raw | patch | inline | side by side (parent: c45e6ca)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 16 Oct 2007 16:25:29 +0000 (16:25 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 16 Oct 2007 16:25:29 +0000 (16:25 +0000) |
src/selection-chemistry.cpp | patch | blob | history |
index 0aa884f56f7de50e7be67a065e7eb05f7d0b8f94..2466b542eb8c697d0d3da9bf872414e38eda48ad 100644 (file)
@@ -201,14 +201,14 @@ GSList *sp_selection_paste_impl (SPDocument *doc, SPObject *parent, GSList **cli
return copied;
}
-void sp_selection_delete_impl(const GSList *items)
+void sp_selection_delete_impl(const GSList *items, bool propagate=true, bool propagate_descendants=true)
{
for (const GSList *i = items ; i ; i = i->next ) {
sp_object_ref((SPObject *)i->data, NULL);
}
for (const GSList *i = items; i != NULL; i = i->next) {
SPItem *item = (SPItem *) i->data;
- SP_OBJECT(item)->deleteObject();
+ SP_OBJECT(item)->deleteObject(propagate, propagate_descendants);
sp_object_unref((SPObject *)item, NULL);
}
}
if (next) {
GSList *temp_clip = NULL;
sp_selection_copy_impl (items, &temp_clip, NULL, NULL, sp_document_repr_doc(dt->doc())); // we're in the same doc, so no need to copy defs
- sp_selection_delete_impl (items);
+ sp_selection_delete_impl (items, false, false);
next=Inkscape::next_layer(dt->currentRoot(), dt->currentLayer()); // Fixes bug 1482973: crash while moving layers
GSList *copied;
if(next) {
if (next) {
GSList *temp_clip = NULL;
sp_selection_copy_impl (items, &temp_clip, NULL, NULL, sp_document_repr_doc(dt->doc())); // we're in the same doc, so no need to copy defs
- sp_selection_delete_impl (items);
+ sp_selection_delete_impl (items, false, false);
next=Inkscape::previous_layer(dt->currentRoot(), dt->currentLayer()); // Fixes bug 1482973: crash while moving layers
GSList *copied;
if(next) {