diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-11-30 20:30:47 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-12-01 15:03:34 +0100 |
commit | e977b55346facf9238892a81ba2b2b382e6f46be (patch) | |
tree | f4d184836b6b31bfcb0f0ddbe7e29faf3891ff54 /tests/auto/corelib/tools/qchar | |
parent | d281274c3fe21d1054725c6c190881ab064784f6 (diff) |
QTabBar: clamp maxScrollOffset before using it in qBound
QTabBar's test reveals that maxScrollOffset can be negative, so
using it in a call like
qBound(0, x, maxScrollOffset)
is wrong. Clamp it to 0.
Change-Id: Idd635343bf14c904dbcc4d141f10bd0161d2cfb4
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qchar')
0 files changed, 0 insertions, 0 deletions