Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
2436:a2ad8c16b46d | 2437:32dbc311c6d4 |
---|---|
473 | 473 |
474 if (paneIndex >= 0 && paneIndex < m_paneStack->getPaneCount()) { | 474 if (paneIndex >= 0 && paneIndex < m_paneStack->getPaneCount()) { |
475 Pane *pane = m_paneStack->getPane(paneIndex); | 475 Pane *pane = m_paneStack->getPane(paneIndex); |
476 m_paneStack->setCurrentPane(pane); | 476 m_paneStack->setCurrentPane(pane); |
477 if (layerIndex >= 0 && layerIndex < pane->getLayerCount()) { | 477 if (layerIndex >= 0 && layerIndex < pane->getLayerCount()) { |
478 Layer *layer = pane->getLayer(layerIndex); | 478 Layer *layer = pane->getFixedOrderLayer(layerIndex); |
479 m_paneStack->setCurrentLayer(pane, layer); | 479 m_paneStack->setCurrentLayer(pane, layer); |
480 } else if (wantLayer && layerIndex == -1) { | 480 } else if (wantLayer && layerIndex == -1) { |
481 m_paneStack->setCurrentLayer(pane, nullptr); | 481 m_paneStack->setCurrentLayer(pane, nullptr); |
482 } | 482 } |
483 } | 483 } |