diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-07-01 12:31:34 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-07-01 12:35:05 (GMT) |
commit | 4cd1d5ce5fed9519a8c093424ca1ed9beb38dd5e (patch) | |
tree | 32201761c46d1f102d2c40ea535e2476d7923269 /src/gui/painting/qdrawhelper.cpp | |
parent | 6c47c8466a894020e9a6113a778a11b04dcd14af (diff) | |
download | Qt-4cd1d5ce5fed9519a8c093424ca1ed9beb38dd5e.zip Qt-4cd1d5ce5fed9519a8c093424ca1ed9beb38dd5e.tar.gz Qt-4cd1d5ce5fed9519a8c093424ca1ed9beb38dd5e.tar.bz2 |
Fixed bug in drawTiledPixmap when width of pixmap matches target rect.
qt_memconvert's duff's device implementation assumes that count is > 0,
if count is 0 it will still blit eight pixels.
Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting/qdrawhelper.cpp')
-rw-r--r-- | src/gui/painting/qdrawhelper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp index d7f7dc3..ca9556b 100644 --- a/src/gui/painting/qdrawhelper.cpp +++ b/src/gui/painting/qdrawhelper.cpp @@ -5014,7 +5014,8 @@ Q_STATIC_TEMPLATE_FUNCTION void blendTiled(int count, const QSpan *spans, void * length -= copy_image_width; copy_image_width *= 2; } - qt_memconvert(dest, src, length); + if (length > 0) + qt_memconvert(dest, src, length); } else { while (length) { int l = qMin(image_width - sx, length); |