diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-05-01 15:31:32 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-05-01 15:34:02 (GMT) |
commit | 1569eaba5eaf99c810d4f205e890b68d069f189b (patch) | |
tree | 1cb0eea75445f69be404a56e723a090e7aea9add /src | |
parent | 5f7cd6ca85b2cb2dc996f260694255d31670766e (diff) | |
download | Qt-1569eaba5eaf99c810d4f205e890b68d069f189b.zip Qt-1569eaba5eaf99c810d4f205e890b68d069f189b.tar.gz Qt-1569eaba5eaf99c810d4f205e890b68d069f189b.tar.bz2 |
Fixed possible crash in QDirectFBPaintEngine::clip
d->clip() might return 0 at this point so make sure we check before
accessing it.
Reviewed-by: TrustMe
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp index 9e6f821..364c6e1 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp @@ -906,7 +906,7 @@ void QDirectFBPaintEngine::clip(const QRect &rect, Qt::ClipOperation op) { Q_D(QDirectFBPaintEngine); d->setClipDirty(); - if (!d->clip()->hasRectClip && d->clip()->enabled) { + if (d->clip() && !d->clip()->hasRectClip && d->clip()->enabled) { const QPoint bottom = d->transform.map(QPoint(0, rect.bottom())); if (bottom.y() >= d->lastLockedHeight) d->lock(); |