summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem.cpp
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-31 05:11:49 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-31 05:11:49 (GMT)
commite241d607aba775d1ed0c8ff537ac69b9bacb18ed (patch)
tree7a4236945952938df052ca5842819877f435195c /src/gui/graphicsview/qgraphicsitem.cpp
parent72a6ac6e9a2f6f028994548670cb2c6524864186 (diff)
downloadQt-e241d607aba775d1ed0c8ff537ac69b9bacb18ed.zip
Qt-e241d607aba775d1ed0c8ff537ac69b9bacb18ed.tar.gz
Qt-e241d607aba775d1ed0c8ff537ac69b9bacb18ed.tar.bz2
Fixes QGraphicsEffect offset bugs.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 9700965..991f2b2 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -10054,7 +10054,7 @@ QPixmap QGraphicsItemEffectSourcePrivate::pixmap(Qt::CoordinateSystem system, QP
const QRectF sourceRect = boundingRect(system);
QRect effectRect = item->graphicsEffect()->boundingRectFor(sourceRect).toAlignedRect();
if (offset)
- *offset = sourceRect.toAlignedRect().topLeft();
+ *offset = effectRect.topLeft();
if (deviceCoordinates) {
// Clip to viewport rect.