From e6b2d12236f0bfa24e39b4b371343008a1a990a3 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 10 Nov 2017 23:01:21 +0100 Subject: [PATCH] SSB mod/demod: make sure channel marker bandwidth and low cutoff are displayed correctly --- plugins/channelrx/demodssb/ssbdemodgui.cpp | 1 + plugins/channeltx/modssb/ssbmodgui.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/channelrx/demodssb/ssbdemodgui.cpp b/plugins/channelrx/demodssb/ssbdemodgui.cpp index 1f67323cb..d7e9fddc4 100644 --- a/plugins/channelrx/demodssb/ssbdemodgui.cpp +++ b/plugins/channelrx/demodssb/ssbdemodgui.cpp @@ -376,6 +376,7 @@ void SSBDemodGUI::applyBandwidths(bool force) bool wasBlocked = blockApplySettings(true); m_channelMarker.setBandwidth(bw * 200); m_channelMarker.setSidebands(dsb ? ChannelMarker::dsb : bw < 0 ? ChannelMarker::lsb : ChannelMarker::usb); + if (!dsb) { m_channelMarker.setLowCutoff(lw * 100); } blockApplySettings(wasBlocked); } diff --git a/plugins/channeltx/modssb/ssbmodgui.cpp b/plugins/channeltx/modssb/ssbmodgui.cpp index ed2956354..7f45df66f 100644 --- a/plugins/channeltx/modssb/ssbmodgui.cpp +++ b/plugins/channeltx/modssb/ssbmodgui.cpp @@ -533,7 +533,9 @@ void SSBModGUI::applyBandwidths(bool force) applySettings(force); bool applySettingsWereBlocked = blockApplySettings(true); + m_channelMarker.setBandwidth(bw * 200); m_channelMarker.setSidebands(dsb ? ChannelMarker::dsb : bw < 0 ? ChannelMarker::lsb : ChannelMarker::usb); + if (!dsb) { m_channelMarker.setLowCutoff(lw * 100); } blockApplySettings(applySettingsWereBlocked); }