Skip to content

Commit

Permalink
ValueDialZ: fixed compilation warning. Fixes #1155
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Feb 20, 2022
1 parent 308ffca commit 2260424
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ sdrangel (6.19.1-1) unstable; urgency=medium
* Metis MISO: save stream and spectrum stream indices in settings. Fixes #1126
* Map feature, ADSB and AIS demods updates. PR #1135
* Do not write tail audio samples and write to sample buffer only if necessary. Issue #1132
* ValueDialZ: fixed compilation warning, Fixes #1155

-- Edouard Griffiths, F4EXB <[email protected]> Sun, 20 Feb 2022 21:31:55 +0100

Expand Down
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ sdrangel (6.19.1-1) unstable; urgency=medium
* Metis MISO: save stream and spectrum stream indices in settings. Fixes #1126
* Map feature, ADSB and AIS demods updates. PR #1135
* Do not write tail audio samples and write to sample buffer only if necessary. Issue #1132
* ValueDialZ: fixed compilation warning, Fixes #1155

-- Edouard Griffiths, F4EXB <[email protected]> Sun, 20 Feb 2022 21:31:55 +0100

Expand Down
2 changes: 1 addition & 1 deletion sdrgui/gui/valuedialz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void ValueDialZ::setValue(qint64 value)
void ValueDialZ::setValueRange(bool positiveOnly, uint numDigits, qint64 min, qint64 max, int decimalPos)
{
m_positiveOnly = positiveOnly;
m_decimalPos = decimalPos < 0 ? 0 : decimalPos > numDigits ? numDigits : decimalPos;
m_decimalPos = decimalPos < 0 ? 0 : decimalPos > (int) numDigits ? numDigits : decimalPos;
m_numDigits = numDigits;
m_numThousandPoints = m_numDigits < 3 ? 0 : (m_numDigits%3) == 0 ? (m_numDigits/3)-1 : m_numDigits/3;

Expand Down

0 comments on commit 2260424

Please sign in to comment.