Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 638:8c5379570f36 fix-static-analysis
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 04 Dec 2018 13:49:20 +0000 |
parents | e2715204feaa 109a1dd59f45 |
children | 6fd0ebfd2bbe |
line wrap: on
line diff
--- 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 {