comparison 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
comparison
equal deleted inserted replaced
636:e2715204feaa 638:8c5379570f36
3983 3983
3984 CommandHistory::getInstance()->startCompoundOperation 3984 CommandHistory::getInstance()->startCompoundOperation
3985 (tr("Delete Pane"), true); 3985 (tr("Delete Pane"), true);
3986 3986
3987 while (pane->getLayerCount() > 0) { 3987 while (pane->getLayerCount() > 0) {
3988 Layer *layer = pane->getLayer(0); 3988 Layer *layer = pane->getLayer(pane->getLayerCount() - 1);
3989 if (layer) { 3989 if (layer) {
3990 m_document->removeLayerFromView(pane, layer); 3990 m_document->removeLayerFromView(pane, layer);
3991 } else { 3991 } else {
3992 break; 3992 break;
3993 } 3993 }