summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-06-12 08:24:34 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-06-12 09:02:06 (GMT)
commitf86dcade8716a0aee841ba05740887598633de17 (patch)
tree904977e20b7324ea3dd3683a1cd0683c631630e9 /src/gui
parentd0baa9b8dc9ed191903447032f1cf6afe9a2463e (diff)
downloadQt-f86dcade8716a0aee841ba05740887598633de17.zip
Qt-f86dcade8716a0aee841ba05740887598633de17.tar.gz
Qt-f86dcade8716a0aee841ba05740887598633de17.tar.bz2
Fixed clipping bug due to applying redirection offset twice.
After change f0a4a37a5182660580fd361110d3fd51463221d8 the clip info stack already contains the redirection offset, so we don't need to apply it again. Reviewed-by: bnilsen
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qpainter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index 528c575..1094206 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -414,7 +414,7 @@ void QPainterPrivate::draw_helper(const QPainterPath &originalPath, DrawOperatio
bool old_txinv = txinv;
QTransform old_invMatrix = invMatrix;
txinv = true;
- invMatrix = state->redirectionMatrix.inverted();
+ invMatrix = QTransform();
QPainterPath clipPath = q->clipPath();
QRectF r = clipPath.boundingRect().intersected(absPathRect);
absPathRect = r.toAlignedRect();