summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Barron <jbarron@trolltech.com>2009-04-29 09:22:02 (GMT)
committerJason Barron <jbarron@trolltech.com>2009-04-29 09:22:02 (GMT)
commitb9088019b62abc288d704800ed7d45df942a3cd6 (patch)
tree2af240c7faa694730bfa2e1bc0593a39493234cf
parente28cefa64b02b61e305581abdbb0469b6e484c40 (diff)
downloadQt-b9088019b62abc288d704800ed7d45df942a3cd6.zip
Qt-b9088019b62abc288d704800ed7d45df942a3cd6.tar.gz
Qt-b9088019b62abc288d704800ed7d45df942a3cd6.tar.bz2
Fixes crash when setting geometry on an obscured window.
Since Qt on Symbian now destroys the backing store when it gets hidden or obscured we need to be careful not to use functions like moveRect() when we don't have a backing store since this function is really a backing store optimization and therefore assumes one exists.
-rw-r--r--src/gui/kernel/qwidget_s60.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp
index f78b5be..a477a09 100644
--- a/src/gui/kernel/qwidget_s60.cpp
+++ b/src/gui/kernel/qwidget_s60.cpp
@@ -99,7 +99,7 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove)
// disable it for this particular widget.
if (inTopLevelResize)
tlwExtra->inTopLevelResize = false;
- if (!isResize)
+ if (!isResize && maybeBackingStore())
moveRect(QRect(oldPos, oldSize), x - oldPos.x(), y - oldPos.y());
else
invalidateBuffer_resizeHelper(oldPos, oldSize);