Hi André,
André Wöbbeking wrote:
On Friday 20 February 2009, André Wöbbeking wrote:
Hi,
in the attached testcase the fill pattern of the polygon is painted
outside the polygon.
It's caused by the combination of setWorldMatrix(), drawText() and
save()/restore().
This is on Linux. But as I use the raster engine it should be
reproducible on any platform.
Any news on this?
This has been fixed, but unfortunately it was too late for 4.5.0 (it'll
appear in 4.5.1). I've attached the patch though, in case you need it.
Regards,
--
Trond K.
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp
index 4e5ffe9..495e6c4 100644
--- a/src/gui/painting/qpaintengine_raster.cpp
+++ b/src/gui/painting/qpaintengine_raster.cpp
@@ -2103,8 +2103,8 @@ void QRasterPaintEngine::drawPolygon(const QPoint *points, int pointCount, Polyg
if (mode != PolylineMode) {
ensureBrush();
if (s->brushData.blend) {
-
// Compose polygon fill..,
+ ensureOutlineMapper();
d->outlineMapper->setCoordinateRounding(s->penData.blend != 0);
d->outlineMapper->beginOutline(mode == WindingMode ? Qt::WindingFill : Qt::OddEvenFill);
d->outlineMapper->moveTo(*points);
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback