summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-03-30 07:25:38 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-03-30 07:27:04 (GMT)
commit5ef6ac6550f1692d66611e7918d85c7ebedda439 (patch)
treedcad304b13530179d58040cb1775c3e835c27094 /src/gui/painting
parent489da53d86c41d4cb0ce4e533c40b7f5dcae4d0e (diff)
downloadQt-5ef6ac6550f1692d66611e7918d85c7ebedda439.zip
Qt-5ef6ac6550f1692d66611e7918d85c7ebedda439.tar.gz
Qt-5ef6ac6550f1692d66611e7918d85c7ebedda439.tar.bz2
Fix missing fills of rects with negative width/height in raster engine.
Call isEmpty() on the normalized rect instead of the original rect. Task-number: 247505 Reviewed-by:
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qpaintengine_raster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp
index ba79b5b..6dd5682 100644
--- a/src/gui/painting/qpaintengine_raster.cpp
+++ b/src/gui/painting/qpaintengine_raster.cpp
@@ -1529,7 +1529,7 @@ void QRasterPaintEngine::drawRects(const QRectF *rects, int rectCount)
d->initializeRasterizer(&s->brushData);
for (int i = 0; i < rectCount; ++i) {
const QRectF &rect = rects[i].normalized();
- if (rects[i].isEmpty())
+ if (rect.isEmpty())
continue;
const QPointF a = s->matrix.map((rect.topLeft() + rect.bottomLeft()) * 0.5f);
const QPointF b = s->matrix.map((rect.topRight() + rect.bottomRight()) * 0.5f);