From cbd663f2afe44ef592ca3ff3dd303c00641563ed Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 24 Jun 2022 11:55:52 +0100 Subject: [PATCH] Spectrum: Fix mouse wheel to zoom in waterfall --- sdrgui/gui/glspectrum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/gui/glspectrum.cpp b/sdrgui/gui/glspectrum.cpp index 69c95cb27..8e24ae9ee 100644 --- a/sdrgui/gui/glspectrum.cpp +++ b/sdrgui/gui/glspectrum.cpp @@ -3363,7 +3363,7 @@ void GLSpectrum::wheelEvent(QWheelEvent *event) #else const QPointF& ep = event->pos(); #endif - if (pointInWaterfallOrSpectrogram(ep)) + if (m_display3DSpectrogram && pointInWaterfallOrSpectrogram(ep)) { // Scale 3D spectrogram when mouse wheel moved // Some mice use delta in steps of 120 for 15 degrees