Skip to content

Commit

Permalink
Merge pull request #1281 from gqrx-sdr/amplitude-axis-fix
Browse files Browse the repository at this point in the history
Fix inconsistent 1-2-5 scaling of amplitude axis
  • Loading branch information
argilo authored Sep 27, 2023
2 parents 273e4ef + 0dfcada commit 72dda81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
FIXED: Crash in AFSK1200 decoder.
FIXED: Y axis in saved waterfall is too narrow.
FIXED: Hang when setting a very narrow filter width.
FIXED: Inconsistent 1-2-5 scaling of amplitude axis.


2.16: Released April 28, 2023
Expand Down
3 changes: 2 additions & 1 deletion src/qtgui/plotter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2223,8 +2223,9 @@ void CPlotter::drawOverlay()
// Level grid
qint64 mindBAdj64 = 0;
qint64 dbDivSize = 0;
qint64 dbSpan = (qint64) (m_PandMaxdB - m_PandMindB);

calcDivSize((qint64) m_PandMindB, (qint64) m_PandMaxdB,
calcDivSize((qint64) m_PandMindB, ((qint64) m_PandMindB) + dbSpan,
qMax(h / (m_VdivDelta * m_DPR), (qreal)VERT_DIVS_MIN),
mindBAdj64, dbDivSize, m_VerDivs);

Expand Down

0 comments on commit 72dda81

Please sign in to comment.