diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-28 15:02:33 +0200 |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-28 16:26:25 +0200 |
commit | c3df6e12309164a6fa0cf76546a354c5d59c5374 (patch) | |
tree | ff6ef61c57a3f8849d2deb8eac605b4e4d945a98 | |
parent | 31a0ef1d1dd55096652c1c4f0501fce2937a1b23 (diff) | |
download | qt4-tools-c3df6e12309164a6fa0cf76546a354c5d59c5374.tar.gz |
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.
-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 8860677fae..765f76be6c 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); |