changeset 2437:32dbc311c6d4 spectrogram-export

setcurrent should use fixed ordering for layers
author Chris Cannam
date Tue, 07 Jan 2020 14:32:56 +0000
parents a2ad8c16b46d
children a5ec35798c9e
files main/OSCHandler.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/OSCHandler.cpp	Tue Jan 07 11:23:28 2020 +0000
+++ b/main/OSCHandler.cpp	Tue Jan 07 14:32:56 2020 +0000
@@ -475,7 +475,7 @@
             Pane *pane = m_paneStack->getPane(paneIndex);
             m_paneStack->setCurrentPane(pane);
             if (layerIndex >= 0 && layerIndex < pane->getLayerCount()) {
-                Layer *layer = pane->getLayer(layerIndex);
+                Layer *layer = pane->getFixedOrderLayer(layerIndex);
                 m_paneStack->setCurrentLayer(pane, layer);
             } else if (wantLayer && layerIndex == -1) {
                 m_paneStack->setCurrentLayer(pane, nullptr);