3D spectrum: Allow = to be used for +. Fix array delete.

pull/1501/head
Jon Beniston 2022-11-05 20:58:47 +00:00
rodzic 66f34d5500
commit 036f396be4
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -2194,7 +2194,7 @@ void GLSpectrumView::measurePeaks()
}
}
delete spectrum;
delete[] spectrum;
}
// Calculate and display channel power
@ -4893,6 +4893,7 @@ bool GLSpectrumView::eventFilter(QObject *object, QEvent *event)
m_glShaderSpectrogram.rotateZ(-5.0f);
}
break;
case Qt::Key_Equal: // So you don't need to press shift
case Qt::Key_Plus:
if (keyEvent->modifiers() & Qt::ControlModifier) {
m_glShaderSpectrogram.userScaleZ(1.1f);