# HG changeset patch # User Chris Cannam # Date 1543931360 0 # Node ID 8c5379570f3676653a3162752570a2349e6093fd # Parent e2715204feaa72e6aa51c4e7c93f65354a7ded4f# Parent 109a1dd59f4516f8b182af57a4ca86908c3358d7 Merge from default branch diff -r e2715204feaa -r 8c5379570f36 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Mon Nov 26 14:34:06 2018 +0000 +++ b/framework/MainWindowBase.cpp Tue Dec 04 13:49:20 2018 +0000 @@ -3985,7 +3985,7 @@ (tr("Delete Pane"), true); while (pane->getLayerCount() > 0) { - Layer *layer = pane->getLayer(0); + Layer *layer = pane->getLayer(pane->getLayerCount() - 1); if (layer) { m_document->removeLayerFromView(pane, layer); } else {