mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-01 21:45:00 -04:00
Avoid a crash when Rx samples arrive before wide graph plotter is ready
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user