Fixed issue where the waterfall colors re-scaled to min-max versus user

preference upon wf length change.
monitor
Elliott Liggett 2022-08-18 11:07:29 -07:00
rodzic c59050e632
commit a7587963b0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2098,7 +2098,7 @@ void wfmain::prepareWf(unsigned int wfLength)
colorMap->data()->setValueRange(QCPRange(0, wfLength-1));
colorMap->data()->setKeyRange(QCPRange(0, spectWidth-1));
colorMap->setDataRange(QCPRange(0, rigCaps.spectAmpMax));
colorMap->setDataRange(QCPRange(prefs.plotFloor, prefs.plotCeiling));
colorMap->setGradient(static_cast<QCPColorGradient::GradientPreset>(ui->wfthemeCombo->currentData().toInt()));
if(colorMapData == Q_NULLPTR)