summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-30 00:12:58 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-30 00:12:58 +0000
commit290c8499f0f609279f2d770ad7e31f4c011aa7da (patch)
tree32a33a0452cba0a90648e832d4287a80ec814f27 /src/verbs.cpp
parentFix a small issue with Attach Path (diff)
parentFix bug #1290573 and #1310802 (diff)
downloadinkscape-290c8499f0f609279f2d770ad7e31f4c011aa7da.tar.gz
inkscape-290c8499f0f609279f2d770ad7e31f4c011aa7da.zip
Fix an issue with doOnRemove not being called
(bzr r13090.1.70)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 4761ea5f9..10814cea1 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1372,6 +1372,10 @@ void LayerVerb::perform(SPAction *action, void *data)
survivor = Inkscape::previous_layer(dt->currentRoot(), old_layer);
}
+ if (survivor == old_layer->lastChild()) {
+ //oops: layer_fns messed up. BADLY.
+ survivor = NULL;
+ }
// Deleting the old layer before switching layers is a hack to trigger the
// listeners of the deletion event (as happens when old_layer is deleted using the
// xml editor). See