From f5d2c5cd90cb858e297529ad2e4f11fff41236cd Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 7 Jan 2021 15:51:52 -0500 Subject: [PATCH] Erase old T M R 73 when RxFreq has changed. --- widgets/plotter.cpp | 4 +++- widgets/plotter.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/widgets/plotter.cpp b/widgets/plotter.cpp index 52bb97be7..2181bc619 100644 --- a/widgets/plotter.cpp +++ b/widgets/plotter.cpp @@ -141,10 +141,12 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed) //move current data down one line (must do this before attaching a QPainter object) if(bScroll and !m_bReplot) m_WaterfallPixmap.scroll(0,1,0,0,m_w,m_h1); QPainter painter1(&m_WaterfallPixmap); - if(m_bFirst or bRed or (!m_bQ65_Sync and !m_bQ65_MultiSync) or m_mode!=m_mode0 or m_bResized) { + if(m_bFirst or bRed or (!m_bQ65_Sync and !m_bQ65_MultiSync) or m_mode!=m_mode0 + or m_bResized or m_rxFreq!=m_rxFreq0) { m_2DPixmap = m_OverlayPixmap.copy(0,0,m_w,m_h2); m_bFirst=false; m_bResized=false; + m_rxFreq0=m_rxFreq; } m_mode0=m_mode; QPainter painter2D(&m_2DPixmap); diff --git a/widgets/plotter.h b/widgets/plotter.h index c3627eb00..a4a8d6e04 100644 --- a/widgets/plotter.h +++ b/widgets/plotter.h @@ -179,6 +179,7 @@ private: qint32 m_h1; qint32 m_h2; qint32 m_rxFreq; + qint32 m_rxFreq0=0; qint32 m_txFreq; qint32 m_fMin; qint32 m_fMax;