mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-01 16:38:06 -04:00
Scopevis NG: prevent invalid index
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user