From ea1510d837d4aee5b35c879a729d5c15d51886f2 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 5 Jan 2021 12:01:20 -0500 Subject: [PATCH] Don't display DT on waterfall when orange sync curve is used. --- widgets/plotter.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/widgets/plotter.cpp b/widgets/plotter.cpp index fd7cb173c..52bb97be7 100644 --- a/widgets/plotter.cpp +++ b/widgets/plotter.cpp @@ -293,12 +293,14 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed) if(m_bQ65_MultiSync) pen0.setColor("orange"); painter2D.setPen(pen0); painter2D.drawPolyline(LineBuf2,k); - QString t; - t = t.asprintf("DT = %6.2f",xdt); - painter2D.setPen(Qt::white); - Font.setWeight(QFont::Bold); - painter2D.setFont(Font); - painter2D.drawText(m_w-100,m_h2/2,t); + if(m_bQ65_Sync) { + QString t; + t = t.asprintf("DT = %6.2f",xdt); + painter2D.setPen(Qt::white); + Font.setWeight(QFont::Bold); + painter2D.setFont(Font); + painter2D.drawText(m_w-100,m_h2/2,t); + } } } update(); //trigger a new paintEvent