1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-14 20:31:53 -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; maxTraceDelay = itData->m_traceDelay;
} }
if (itData->m_projectionType < 0) {
itData->m_projectionType = ProjectionReal;
}
if (projectorCounts[(int) itData->m_projectionType] > 0) if (projectorCounts[(int) itData->m_projectionType] > 0)
{ {
allocateCache = true; allocateCache = true;