diff options
author | Sami Merila <sami.merila@nokia.com> | 2010-02-25 15:10:18 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2010-02-25 15:10:18 (GMT) |
commit | 1b9f273c3d0e10cb14a35a9a058b379b8777b5d8 (patch) | |
tree | 704575e93d35698f55d359c843f310d20de2dab8 /src/gui/graphicsview/qgraphicsscene.cpp | |
parent | d996f6707a8733a8d151dcad59981cbb0f2f03f1 (diff) | |
parent | d8465414e6fd543cfc20e732030dedd8d2bc685f (diff) | |
download | Qt-1b9f273c3d0e10cb14a35a9a058b379b8777b5d8.zip Qt-1b9f273c3d0e10cb14a35a9a058b379b8777b5d8.tar.gz Qt-1b9f273c3d0e10cb14a35a9a058b379b8777b5d8.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 1cd1dba..afea082 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -4679,7 +4679,8 @@ void QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem *item, QPainter * if (widget) item->d_ptr->paintedViewBoundingRects.insert(widget, viewBoundingRect); viewBoundingRect.adjust(-1, -1, 1, 1); - drawItem = exposedRegion ? exposedRegion->intersects(viewBoundingRect) : !viewBoundingRect.isEmpty(); + drawItem = exposedRegion ? exposedRegion->intersects(viewBoundingRect) + : !viewBoundingRect.normalized().isEmpty(); if (!drawItem) { if (!itemHasChildren) return; |