diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-07-03 01:25:03 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-07-03 01:25:03 (GMT) |
commit | b0f18119b4559a2b425222c2d63671422c014783 (patch) | |
tree | 565202b8ed5085af02de64a7ab044dbb0e0ed437 | |
parent | 9c64e8f7a5e19e241deaa7e426534dc6761a6890 (diff) | |
download | Qt-b0f18119b4559a2b425222c2d63671422c014783.zip Qt-b0f18119b4559a2b425222c2d63671422c014783.tar.gz Qt-b0f18119b4559a2b425222c2d63671422c014783.tar.bz2 |
QDirectFBPaintEngine return if destRect is null
Reviewed-by: Donald <qt-info@nokia.com>
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp index df341fb..947cc76 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp @@ -1062,6 +1062,8 @@ void QDirectFBPaintEnginePrivate::blit(const QRectF &dest, IDirectFBSurface *s, { const QRect sr = src.toRect(); const QRect dr = transform.mapRect(dest).toRect(); + if (dr.isEmpty()) + return; const DFBRectangle sRect = { sr.x(), sr.y(), sr.width(), sr.height() }; DFBResult result; |