From 8ed4abcd2eb405ad38de2d62260cdb9dd599e844 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 1 Mar 2018 04:30:12 +0100 Subject: [PATCH] GLScopeNG, GLScopeMulti: fixed over VLA replacement --- sdrgui/gui/glscopemulti.cpp | 2 +- sdrgui/gui/glscopeng.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdrgui/gui/glscopemulti.cpp b/sdrgui/gui/glscopemulti.cpp index c963f63b2..d3d9549b4 100644 --- a/sdrgui/gui/glscopemulti.cpp +++ b/sdrgui/gui/glscopemulti.cpp @@ -1032,7 +1032,7 @@ void GLScopeMulti::applyConfig() m_q3TickY1.allocate(4*m_y1Scale.getTickList().count()); m_q3TickY2.allocate(4*m_y2Scale.getTickList().count()); m_q3TickX1.allocate(4*m_x1Scale.getTickList().count()); - m_q3TickX2.allocate(4*m_x1Scale.getTickList().count()); + m_q3TickX2.allocate(4*m_x2Scale.getTickList().count()); int start = (m_timeOfsProMill/1000.0) * m_traceSize; int end = std::min(start + m_traceSize/m_timeBase, m_traceSize); diff --git a/sdrgui/gui/glscopeng.cpp b/sdrgui/gui/glscopeng.cpp index 3210eff9b..30f32bac0 100644 --- a/sdrgui/gui/glscopeng.cpp +++ b/sdrgui/gui/glscopeng.cpp @@ -1032,7 +1032,7 @@ void GLScopeNG::applyConfig() m_q3TickY1.allocate(4*m_y1Scale.getTickList().count()); m_q3TickY2.allocate(4*m_y2Scale.getTickList().count()); m_q3TickX1.allocate(4*m_x1Scale.getTickList().count()); - m_q3TickX2.allocate(4*m_x1Scale.getTickList().count()); + m_q3TickX2.allocate(4*m_x2Scale.getTickList().count()); int start = (m_timeOfsProMill/1000.0) * m_traceSize; int end = std::min(start + m_traceSize/m_timeBase, m_traceSize);