diff options
author | Pierre Rossi <pierre.rossi@nokia.com> | 2010-12-29 17:12:30 (GMT) |
---|---|---|
committer | Pierre Rossi <pierre.rossi@nokia.com> | 2011-01-04 12:15:35 (GMT) |
commit | f2e3ef4e1eb656e1ce9f980a7d7bf63444b02504 (patch) | |
tree | a99f85f5e77dd1bc5706426ef4b32310ddc4ad4f /src | |
parent | 4d53a691aaac9789ddd4f9d4e968d28ace2181ca (diff) | |
download | Qt-f2e3ef4e1eb656e1ce9f980a7d7bf63444b02504.zip Qt-f2e3ef4e1eb656e1ce9f980a7d7bf63444b02504.tar.gz Qt-f2e3ef4e1eb656e1ce9f980a7d7bf63444b02504.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')
-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 f5f7c3c..29e6a88 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1156,6 +1156,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) { |