summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/qtablewidget-using/main.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-11-12 13:49:16 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-11-12 23:45:30 +0100
commite4315204b1412d74842b3167c3eb9a49dc233355 (patch)
tree290f40c7f146ec60fe296d92285a511b32650b93 /src/widgets/doc/snippets/qtablewidget-using/main.cpp
parentc1d389a132d291fb404bef11de3c1b45dbfa2afc (diff)
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>
Diffstat (limited to 'src/widgets/doc/snippets/qtablewidget-using/main.cpp')
0 files changed, 0 insertions, 0 deletions