1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-29 19:28:47 -05:00

Scopevis NG: prevent invalid index

This commit is contained in:
f4exb 2018-02-15 18:48:31 +01:00
parent c827879613
commit 2dbb0b3253

View File

@ -794,6 +794,10 @@ void ScopeVisNG::updateMaxTraceDelay()
maxTraceDelay = itData->m_traceDelay;
}
if (itData->m_projectionType < 0) {
itData->m_projectionType = ProjectionReal;
}
if (projectorCounts[(int) itData->m_projectionType] > 0)
{
allocateCache = true;