diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2010-08-25 02:53:34 (GMT) |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2010-08-25 02:53:34 (GMT) |
commit | 87bc302810b97bd647187e5e31f5276ae729dce0 (patch) | |
tree | 373b08bdb7cf513b95299e854399b7e3bde289ad /src/gui/graphicsview/qgraphicsscene.cpp | |
parent | e566660e222ea194c97c19c26dcb69b5d29ea90c (diff) | |
parent | e141cb25e57b40af839abf872f65895724a39e88 (diff) | |
download | Qt-87bc302810b97bd647187e5e31f5276ae729dce0.zip Qt-87bc302810b97bd647187e5e31f5276ae729dce0.tar.gz Qt-87bc302810b97bd647187e5e31f5276ae729dce0.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index a02f3ac..4c03d33 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -5126,7 +5126,9 @@ void QGraphicsScenePrivate::processDirtyItemsRecursive(QGraphicsItem *item, bool q->update(itemBoundingRect.translated(item->d_ptr->sceneTransform.dx(), item->d_ptr->sceneTransform.dy())); } else { - q->update(item->d_ptr->sceneTransform.mapRect(itemBoundingRect)); + QRectF rect = item->d_ptr->sceneTransform.mapRect(itemBoundingRect); + if (!rect.isEmpty()) + q->update(rect); } } else { QRectF dirtyRect; |