mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Scopevis NG: prevent invalid index
This commit is contained in:
parent
c827879613
commit
2dbb0b3253
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user