1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

GLScope: fixed X2 frequency scale setting

This commit is contained in:
f4exb 2022-06-01 20:15:35 +02:00
parent 824e13d595
commit 7e8db84e67

View File

@ -1093,9 +1093,9 @@ void GLScope::applyConfig()
else else
{ {
if (m_xScaleFreq) { if (m_xScaleFreq) {
m_x2Scale.setRange(Unit::Time, t_start, t_start + t_len); // time scale
} else {
m_x2Scale.setRange(Unit::Frequency, m_xScaleCenterFrequency - (m_xScaleFrequencySpan/2), m_xScaleCenterFrequency + (m_xScaleFrequencySpan/2)); m_x2Scale.setRange(Unit::Frequency, m_xScaleCenterFrequency - (m_xScaleFrequencySpan/2), m_xScaleCenterFrequency + (m_xScaleFrequencySpan/2));
} else {
m_x2Scale.setRange(Unit::Time, t_start, t_start + t_len); // time scale
} }
} }