summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-10-16 16:25:29 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-10-16 16:25:29 +0000
commitd74d1077df75ab7cdea1212a2a7c78e1028d570c (patch)
tree833e8d5927a7850b729676243f361651474f595b /src/selection-chemistry.cpp
parentdrop color on gr-drag first (diff)
downloadinkscape-d74d1077df75ab7cdea1212a2a7c78e1028d570c.tar.gz
inkscape-d74d1077df75ab7cdea1212a2a7c78e1028d570c.zip
fix unlinking clones when moving original to another layer
(bzr r3910)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 0aa884f56..2466b542e 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -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);
}
}
@@ -1333,7 +1333,7 @@ void sp_selection_to_next_layer ()
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) {
@@ -1378,7 +1378,7 @@ void sp_selection_to_prev_layer ()
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) {