diff options
author | Pierre Rossi <pierre.rossi@theqtcompany.com> | 2015-01-07 16:16:23 +0100 |
---|---|---|
committer | Pierre Rossi <pierre.rossi@theqtcompany.com> | 2015-01-19 10:47:28 +0100 |
commit | 890ae41d0601d20505df2f955a99d0238bf4f59e (patch) | |
tree | 176ff1168b0c2a9151f2e8291df20c9a5574e30a /src/gui/kernel | |
parent | 7c9497ad6ae9cb4b596bc76c70077577d97fe3cb (diff) |
Fix a crash in QPlainTextEdit::documentChanged
The layout for an invalid block is very likely to be null, it
shouldn't be accessed without checking the block's validity first.
We can make the check a bit more conservative and simply check that
the block isn't empty.
Change-Id: Ic1459a6168b1b8ce36e9c6d019dc28653676efbe
Task-number: QTBUG-43562
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions