1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 15:26:33 -04:00

ScopeVis: fixed moving of iterator past the end. Fixes issue #556

This commit is contained in:
f4exb 2020-07-05 11:45:03 +02:00
parent a40df16902
commit 5504a89184

View File

@ -245,7 +245,7 @@ void ScopeVis::feed(const SampleVector::const_iterator& cbegin, const SampleVect
while (begin < end)
{
if (begin + m_traceSize > end) // buffer smaller than trace size (end - bagin) < m_traceSize
if (end - begin < m_traceSize) // buffer smaller than trace size (end - bagin) < m_traceSize
{
triggerPointToEnd = -1;
processTrace(begin, end, triggerPointToEnd); // use all buffer