QDial: don't crash when min==max and setting a value != min & max
QDial::bound() is crashing when min == max due to a division by zero. Therefore check for this condition beforehand and return min.
Pick-to: 6.6 6.5 6.2 5.15 Fixes: QTBUG-104641 Change-Id: I612625af1ad18333d59a7771abfdec602301b58e Reviewed-by: Axel Spoerl axel.spoerl@qt.io (cherry picked from commit e4315204)
Note: 5.15 codereview not even submitted yet pending now upstream, but cherry-pick is straightforward.
See also: https://bugreports.qt.io/browse/QTBUG-104641
Edited by Andreas Sturmlechner