mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 21:57:51 -04:00
ScopeVis: fixed moving of iterator past the end. Fixes issue #556
This commit is contained in:
parent
a40df16902
commit
5504a89184
@ -245,7 +245,7 @@ void ScopeVis::feed(const SampleVector::const_iterator& cbegin, const SampleVect
|
|||||||
|
|
||||||
while (begin < end)
|
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;
|
triggerPointToEnd = -1;
|
||||||
processTrace(begin, end, triggerPointToEnd); // use all buffer
|
processTrace(begin, end, triggerPointToEnd); // use all buffer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user