summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-04-07 02:18:58 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-04-07 02:18:58 (GMT)
commit5a0b19a4559fa83e77cc6c6cd05fc492e692b667 (patch)
tree1f29c9bcca57fe536c9904145d00cd571f845c19 /src/plugins
parent80d83e72fca6a60ca9cfec8bfa37a82087c931a9 (diff)
downloadQt-5a0b19a4559fa83e77cc6c6cd05fc492e692b667.zip
Qt-5a0b19a4559fa83e77cc6c6cd05fc492e692b667.tar.gz
Qt-5a0b19a4559fa83e77cc6c6cd05fc492e692b667.tar.bz2
Make sure to dirty clip in setState
For an example of something that breaks without this fix show a spinbox in plastique style. The clip is never removed. Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index d0a9dc6..4732c65 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -909,8 +909,7 @@ void QDirectFBPaintEngine::setState(QPainterState *s)
{
Q_D(QDirectFBPaintEngine);
QRasterPaintEngine::setState(s);
- if (d->surface)
- d->updateClip();
+ d->setClipDirty();
d->setPen(state()->pen);
d->setBrush(state()->brush);
d->setOpacity(state()->opacity);