Scopevis NG: prevent invalid index

This commit is contained in:
f4exb 2018-02-15 18:48:31 +01:00
parent c827879613
commit 2dbb0b3253
1 changed files with 4 additions and 0 deletions

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;