summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-07-03 01:25:03 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-07-03 01:25:03 (GMT)
commitb0f18119b4559a2b425222c2d63671422c014783 (patch)
tree565202b8ed5085af02de64a7ab044dbb0e0ed437
parent9c64e8f7a5e19e241deaa7e426534dc6761a6890 (diff)
downloadQt-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.cpp2
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;