mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -05:00
ValueDialZ: fixed compilation warning. Fixes #1155
This commit is contained in:
parent
308ffcad54
commit
22604244a3
@ -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 <f4exb06@gmail.com> Sun, 20 Feb 2022 21:31:55 +0100
|
||||
|
||||
|
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -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 <f4exb06@gmail.com> Sun, 20 Feb 2022 21:31:55 +0100
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user