Merge pull request #1008 from srcejon/fix_1004

Additional fix for #1004
This commit is contained in:
Edouard Griffiths 2021-10-06 11:04:58 +02:00 committed by GitHub
commit 6b61030e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -142,9 +142,9 @@ 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_valueNew < m_valueMin) {
setValue(m_valueMin);
} else if(m_value > m_valueMax) {
} else if(m_valueNew > m_valueMax) {
setValue(m_valueMax);
}
}