diff options
author | Pierre Rossi <pierre.rossi@nokia.com> | 2010-12-29 17:12:30 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:58 (GMT) |
commit | be22bbb6a171408861b7d1da2f8aa4f7b754a5ef (patch) | |
tree | 3db409d4ca531421ad9f9ae153245263c7e272f4 /src/gui | |
parent | 539352106a03d6cbcb56037255ce8913514b7023 (diff) | |
download | Qt-be22bbb6a171408861b7d1da2f8aa4f7b754a5ef.zip Qt-be22bbb6a171408861b7d1da2f8aa4f7b754a5ef.tar.gz Qt-be22bbb6a171408861b7d1da2f8aa4f7b754a5ef.tar.bz2 |
Set no brush when the brush is a solid patern transparent color.
Fix a bug in pdf print engine that was noticeable when printing
a webpage: the missing image graphic didn't appear in the pdf.
Task-number: QTBUG-16435
Reviewed-by: sroedal
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qpdf.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp index 81a784d..b72114e 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1157,6 +1157,8 @@ void QPdfBaseEngine::updateState(const QPaintEngineState &state) } if (flags & DirtyBrush) { d->brush = state.brush(); + if (d->brush.color().alpha() == 0 && d->brush.style() == Qt::SolidPattern) + d->brush.setStyle(Qt::NoBrush); d->hasBrush = d->brush.style() != Qt::NoBrush; } if (flags & DirtyBrushOrigin) { |