diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-24 15:35:57 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-24 09:49:36 -0700 |
commit | a9a4249b236f07418a3c678d3ec2b7791f957048 (patch) | |
tree | 05d5de6fe07e31df24ac5221131f3a025bab4b1a /gpl-2.0.txt | |
parent | 0278f3f90c307bc62c329bef0bf1f5bb6b76635d (diff) | |
download | subsurface-a9a4249b236f07418a3c678d3ec2b7791f957048.tar.gz |
desktop: avoid crashes on drag&drop in GroupedLineEdit
If the user manages to "scroll" through the QPlainTextEdit by
a drag&drop action, the state of the widget becomes inconsistent.
On the one hand, the text-block says that it has one line.
On the other hand, its layout says that it has no line.
When trying to fetch the line, a crash occurs.
Try to detect such a strange state and return early in
GroupedLineEdit::paintEvent().
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'gpl-2.0.txt')
0 files changed, 0 insertions, 0 deletions