mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 01:18:38 -05:00
ValueDialZ: removed set value to 0 code if value is in range. Fixes #1004
This commit is contained in:
parent
ca931c171f
commit
40a1c854dd
@ -141,22 +141,11 @@ void ValueDialZ::setValueRange(bool positiveOnly, uint numDigits, qint64 min, qi
|
||||
m_valueMin = positiveOnly ? (min < 0 ? 0 : min) : min;
|
||||
m_valueMax = positiveOnly ? (max < 0 ? 0 : max) : max;
|
||||
|
||||
if(m_value < m_valueMin)
|
||||
{
|
||||
if(m_value < m_valueMin) {
|
||||
setValue(m_valueMin);
|
||||
}
|
||||
else if(m_value > m_valueMax)
|
||||
{
|
||||
} else if(m_value > m_valueMax) {
|
||||
setValue(m_valueMax);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_text = formatText(0);
|
||||
m_textNew = m_text;
|
||||
m_value = 0;
|
||||
m_valueNew = m_value;
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
quint64 ValueDialZ::findExponent(int digit)
|
||||
|
Loading…
Reference in New Issue
Block a user