1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Scope on complex<float>: test m_spectrumVis for mullity before attempting to feed data into it

This commit is contained in:
f4exb 2021-06-25 10:31:40 +02:00
parent dc205bc8e2
commit 40778f87ef

View File

@ -760,7 +760,10 @@ int ScopeVis::processTraces(const std::vector<ComplexVector::const_iterator>& vc
uint32_t shift = (m_timeOfsProMill / 1000.0) * m_traceSize;
uint32_t length = m_traceSize / m_timeBase;
int remainder = ilength;
m_spectrumVis->feed(vcbegin[0], vcbegin[0] + ilength, false);
if (m_spectrumVis) {
m_spectrumVis->feed(vcbegin[0], vcbegin[0] + ilength, false);
}
while ((remainder > 0) && (m_nbSamples > 0))
{