Mercurial > hg > sonic-visualiser
diff main/OSCHandler.cpp @ 2437:32dbc311c6d4 spectrogram-export
setcurrent should use fixed ordering for layers
author | Chris Cannam |
---|---|
date | Tue, 07 Jan 2020 14:32:56 +0000 |
parents | f40cd7a512d4 |
children | d811380516f6 |
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);