From b0a6c521ab85ef13ffd39e6502d6ab45dda25d7f Mon Sep 17 00:00:00 2001 From: Konrad Grochowski Date: Tue, 19 Jun 2012 17:15:11 +0200 Subject: proper filling when using Qt::TexturePattern fix for using both Qt::OpaqueMode and Qt::TexturePatter for filling Task-number: QTBUG-19202 Change-Id: Ia92363cacaa51140fe78b542d9768aead81868ff Reviewed-by: Kim M. Kalland --- src/gui/painting/qemulationpaintengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/painting') diff --git a/src/gui/painting/qemulationpaintengine.cpp b/src/gui/painting/qemulationpaintengine.cpp index b7ced4e2c7..7e7b817bca 100644 --- a/src/gui/painting/qemulationpaintengine.cpp +++ b/src/gui/painting/qemulationpaintengine.cpp @@ -80,7 +80,7 @@ void QEmulationPaintEngine::fill(const QVectorPath &path, const QBrush &brush) if (s->bgMode == Qt::OpaqueMode) { Qt::BrushStyle style = brush.style(); - if (style >= Qt::Dense1Pattern && style <= Qt::DiagCrossPattern) + if ((style >= Qt::Dense1Pattern && style <= Qt::DiagCrossPattern) || (style == Qt::TexturePattern )) real_engine->fill(path, s->bgBrush); } -- cgit v1.2.3