diff options
author | mae <qt-info@nokia.com> | 2011-02-23 13:46:34 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2011-02-23 13:54:52 (GMT) |
commit | a2c10e7f58b1031a94c7a31ccf34cfd34e65f515 (patch) | |
tree | a02e7b1e5cd30e411e1dfeabcce1caa008a61da7 /examples/draganddrop/puzzle/mainwindow.h | |
parent | d9d68c383b7b1438d3034cd3708cfba5fb9706ef (diff) | |
download | Qt-a2c10e7f58b1031a94c7a31ccf34cfd34e65f515.zip Qt-a2c10e7f58b1031a94c7a31ccf34cfd34e65f515.tar.gz Qt-a2c10e7f58b1031a94c7a31ccf34cfd34e65f515.tar.bz2 |
Fix QPlainTextEdit corruption/crash with scrolling
There was an off-by-one error when QPlainTextEdit
calculated the number of visible lines (not blocks)
on the screne. When running into the error case,
the number of visible lines was falsely 0 (not 1),
which resulted in all softs of negative side effects
as the scrollbar permitted the user to scroll
behind the last paragraph.
Task-number: QTBUG-17230
Reviewed-by: con
Diffstat (limited to 'examples/draganddrop/puzzle/mainwindow.h')
0 files changed, 0 insertions, 0 deletions