diff --git a/sdrgui/gui/glspectrum.cpp b/sdrgui/gui/glspectrum.cpp index 29b78d4e5..816d57567 100644 --- a/sdrgui/gui/glspectrum.cpp +++ b/sdrgui/gui/glspectrum.cpp @@ -1898,6 +1898,7 @@ void GLSpectrum::applyChanges() if (m_nbBins <= 0) { return; } + QFontMetrics fm(font()); int M = fm.horizontalAdvance("-");