summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Daniel <cd@maintech.de>2013-11-04 21:56:27 +0100
committerChristian Daniel <cd@maintech.de>2013-11-04 21:56:27 +0100
commit221869a8986cdec8717db7f540278fbb904f8118 (patch)
treec5eb8693c28da2304a6487a3aa579fdf47af1da7
parent9e2fb91a9e6190ef9726fba2ed0c542acb4ab420 (diff)
GLSpectrum: fix scale when only the histogram is active
-rw-r--r--sdrbase/gui/glspectrum.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdrbase/gui/glspectrum.cpp b/sdrbase/gui/glspectrum.cpp
index ad4416f..560f33c 100644
--- a/sdrbase/gui/glspectrum.cpp
+++ b/sdrbase/gui/glspectrum.cpp
@@ -953,7 +953,7 @@ void GLSpectrum::applyChanges()
histogramHeight = height() - topMargin - frequencyScaleHeight;
m_powerScale.setSize(histogramHeight);
- m_powerScale.setRange(Unit::Decibel, -100, 0);
+ m_powerScale.setRange(Unit::Decibel, m_referenceLevel - m_powerRange, m_referenceLevel);
leftMargin = m_powerScale.getScaleWidth();
leftMargin += 2 * M;