[Webkit-unassigned] [Bug 79926] PDF 'printing' produces bad content
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 8 06:08:13 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=79926
Clement IGONET <clement.igonet at galaxysemi.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clement.igonet at galaxysemi.c
| |om
--- Comment #1 from Clement IGONET <clement.igonet at galaxysemi.com> ---
Workaround:
--- qt-everywhere-enterprise-src-5.2.1/qtbase/src/gui/painting/qpdf.cpp 2013-08-25 22:04:41.000000000 +0200
+++ qt-everywhere-enterprise-new-5.2.1/qtbase/src/gui/painting/qpdf.cpp 2013-11-04 10:40:37.861325437 +0100
@@ -1061,7 +1061,16 @@
if (d->simplePen) {
// draw strokes natively in this case for better output
+ QBrush oldBrush = d->brush;
+ if (d->opacity != 1.0 && !d->hasBrush) {
+ d->brush = d->pen.brush();
+ setBrush();
+ }
*d->currentPage << QPdf::generatePath(p, QTransform(), d->hasBrush ? QPdf::FillAndStrokePath : QPdf::StrokePath);
+ if (oldBrush != d->brush) {
+ d->brush = oldBrush;
+ setBrush();
+ }
} else {
if (d->hasBrush)
*d->currentPage << QPdf::generatePath(p, d->stroker.matrix, QPdf::FillPath);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160908/f8405b33/attachment.html>
More information about the webkit-unassigned
mailing list