summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-03-08 23:50:57 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-03-26 17:48:34 +0000
commit6e5d89bf9595648fcebcf76fd031ba1ea022d397 (patch)
treea7eb90d21021e843a63c286427a533a4402877d7 /src/verbs.cpp
parentFix maren problem in https://gitlab.com/inkscape/inkscape/merge_requests/212#... (diff)
downloadinkscape-6e5d89bf9595648fcebcf76fd031ba1ea022d397.tar.gz
inkscape-6e5d89bf9595648fcebcf76fd031ba1ea022d397.zip
Fixing refs
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 0e57063dc..2038e213f 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1461,7 +1461,6 @@ void LayerVerb::perform(SPAction *action, void *data)
dt->getSelection()->clear();
SPObject *old_layer=dt->currentLayer();
- sp_object_ref(old_layer, NULL);
SPObject *survivor=Inkscape::next_layer(dt->currentRoot(), old_layer);
if (!survivor) {
survivor = Inkscape::previous_layer(dt->currentRoot(), old_layer);
@@ -1477,7 +1476,6 @@ void LayerVerb::perform(SPAction *action, void *data)
// http://sourceforge.net/tracker/index.php?func=detail&aid=1339397&group_id=93438&atid=604306
//
old_layer->deleteObject();
- sp_object_unref(old_layer, NULL);
if (survivor) {
dt->setCurrentLayer(survivor);
}