diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-28 13:02:33 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-28 14:26:25 (GMT) |
commit | c3df6e12309164a6fa0cf76546a354c5d59c5374 (patch) | |
tree | ff6ef61c57a3f8849d2deb8eac605b4e4d945a98 /src | |
parent | 31a0ef1d1dd55096652c1c4f0501fce2937a1b23 (diff) | |
download | Qt-c3df6e12309164a6fa0cf76546a354c5d59c5374.zip Qt-c3df6e12309164a6fa0cf76546a354c5d59c5374.tar.gz Qt-c3df6e12309164a6fa0cf76546a354c5d59c5374.tar.bz2 |
Fix wrong transform when drawing graphics item effect source.
We are only interested in the difference between the original transform
and the transform set on the painter we're about to use.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp index 8860677..765f76b 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -10270,10 +10270,8 @@ void QGraphicsItemEffectSourcePrivate::draw(QPainter *painter) info->widget, info->opacity, info->effectTransform, info->wasDirtySceneTransform, info->drawItem); } else { - QTransform effectTransform = painter->worldTransform(); - effectTransform *= info->painter->worldTransform().inverted(); - if (info->effectTransform) - effectTransform *= *info->effectTransform; + QTransform effectTransform = info->painter->worldTransform().inverted(); + effectTransform *= painter->worldTransform(); scened->draw(item, painter, info->viewTransform, info->transformPtr, info->exposedRegion, info->widget, info->opacity, &effectTransform, info->wasDirtySceneTransform, info->drawItem); |