Avoid a crash when Rx samples arrive before wide graph plotter is ready

This commit is contained in:
Bill Somerville 2019-04-28 22:20:24 +01:00
parent c5a591f30c
commit a28402c527

View File

@ -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;