diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-30 00:12:58 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-30 00:12:58 +0000 |
| commit | 290c8499f0f609279f2d770ad7e31f4c011aa7da (patch) | |
| tree | 32a33a0452cba0a90648e832d4287a80ec814f27 /src/verbs.cpp | |
| parent | Fix a small issue with Attach Path (diff) | |
| parent | Fix bug #1290573 and #1310802 (diff) | |
| download | inkscape-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.cpp | 4 |
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 |
