mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-18 14:22:26 -04:00
Avoid a crash when Rx samples arrive before wide graph plotter is ready
This commit is contained in:
parent
c5a591f30c
commit
a28402c527
@ -123,6 +123,7 @@ void CPlotter::paintEvent(QPaintEvent *) // paint
|
|||||||
|
|
||||||
void CPlotter::draw(float swide[], bool bScroll, bool bRed)
|
void CPlotter::draw(float swide[], bool bScroll, bool bRed)
|
||||||
{
|
{
|
||||||
|
if (!m_TRperiod) return; // not ready to plot yet
|
||||||
int j,j0;
|
int j,j0;
|
||||||
static int ktop=0;
|
static int ktop=0;
|
||||||
float y,y2,ymin;
|
float y,y2,ymin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user