diff --git a/libs/image/commands/kis_image_layer_remove_command_impl.cpp b/libs/image/commands/kis_image_layer_remove_command_impl.cpp --- a/libs/image/commands/kis_image_layer_remove_command_impl.cpp +++ b/libs/image/commands/kis_image_layer_remove_command_impl.cpp @@ -73,8 +73,8 @@ if (!image) { return; } + m_d->restoreClones(); // so that we can get prevAbove back, if it is our clone image->addNode(m_d->node, m_d->prevParent, m_d->prevAbove); - m_d->restoreClones(); } void KisImageLayerRemoveCommandImpl::Private::restoreClones()