diff options
author | Janne Koskinen <janne.p.koskinen@digia.com> | 2009-11-25 14:10:45 +0200 |
---|---|---|
committer | Janne Koskinen <janne.p.koskinen@digia.com> | 2009-11-25 14:10:45 +0200 |
commit | cee1c16a4738e30db5c011f4ae7e273387b5d998 (patch) | |
tree | 8fdf92bbe62efa0e7286551842985f5b5ddf7a22 /src/gui/painting | |
parent | 6bf1037df75d8d6f697f9f49d8d7fbe9b2cabc98 (diff) | |
download | qt4-tools-cee1c16a4738e30db5c011f4ae7e273387b5d998.tar.gz |
Fixed crash when scrolling with deleted backingstore
In Symbian we save memory by deleting widget backingstore from
non-visible windows. 12-key FEP is fullscreen and causes the
backing store to be deleted but still continues to scroll the view
to show current caret position in focused lineedit control.
Task-number: QTBUG-5922
Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qbackingstore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index 8226797cff..1b8f413be0 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -949,6 +949,8 @@ void QWidgetPrivate::scrollRect(const QRect &rect, int dx, int dy) return; QWidgetBackingStore *wbs = x->backingStore; + if (!wbs) + return; static int accelEnv = -1; if (accelEnv == -1) { |