diff options
author | Chris Meyer <cmeyer1969@gmail.com> | 2010-10-04 08:49:32 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-10-04 08:49:32 (GMT) |
commit | 73fa0f87c26a3f5bf17746ec91d05264f0020093 (patch) | |
tree | c06e6f972cdae0c2f084d8bcd5b464b06134b52e /src | |
parent | ea8dd9d2dbd3345fbf76625c441d9832f758bf70 (diff) | |
download | Qt-73fa0f87c26a3f5bf17746ec91d05264f0020093.zip Qt-73fa0f87c26a3f5bf17746ec91d05264f0020093.tar.gz Qt-73fa0f87c26a3f5bf17746ec91d05264f0020093.tar.bz2 |
Fix QTBUG-13730. QGraphicsScene::render clipping bug. Includes test case.
Merge-request: 2480
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 8dc15bf..e58b93c 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -1759,7 +1759,7 @@ void QGraphicsScene::render(QPainter *painter, const QRectF &target, const QRect painter->save(); // Transform the painter. - painter->setClipRect(targetRect); + painter->setClipRect(targetRect, Qt::IntersectClip); QTransform painterTransform; painterTransform *= QTransform() .translate(targetRect.left(), targetRect.top()) |