From a28402c52737855c734c230b4fe9cbb64c5821e5 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 28 Apr 2019 22:20:24 +0100 Subject: [PATCH] Avoid a crash when Rx samples arrive before wide graph plotter is ready --- widgets/plotter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/widgets/plotter.cpp b/widgets/plotter.cpp index 38e5027a9..98c1af168 100644 --- a/widgets/plotter.cpp +++ b/widgets/plotter.cpp @@ -123,6 +123,7 @@ void CPlotter::paintEvent(QPaintEvent *) // paint void CPlotter::draw(float swide[], bool bScroll, bool bRed) { + if (!m_TRperiod) return; // not ready to plot yet int j,j0; static int ktop=0; float y,y2,ymin;