diff options
author | Janne Koskinen <janne.p.koskinen@digia.com> | 2009-11-25 12:10:45 (GMT) |
---|---|---|
committer | Janne Koskinen <janne.p.koskinen@digia.com> | 2009-11-25 12:10:45 (GMT) |
commit | cee1c16a4738e30db5c011f4ae7e273387b5d998 (patch) | |
tree | 8fdf92bbe62efa0e7286551842985f5b5ddf7a22 /src/gui | |
parent | 6bf1037df75d8d6f697f9f49d8d7fbe9b2cabc98 (diff) | |
download | Qt-cee1c16a4738e30db5c011f4ae7e273387b5d998.zip Qt-cee1c16a4738e30db5c011f4ae7e273387b5d998.tar.gz Qt-cee1c16a4738e30db5c011f4ae7e273387b5d998.tar.bz2 |
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')
-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 8226797..1b8f413 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) { |