From 014ae2ad04cb0d42b95fa19ff3c007591256d3d4 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Mon, 10 Sep 2012 14:10:41 +0200 Subject: Avoid duplicate setPen() in PDF when reusing QPrinter The simplePen property was not reset when reusing the QPrinter, thus we would output two identical setPen() commands in the PDF making the autotest that compares the results fail. Task-number: QTBUG-27171 Change-Id: I601042ec59e45ef72a56f230f6112a91a259b4a5 Reviewed-by: Qt Doc Bot Reviewed-by: Jiang Jiang Reviewed-by: Lars Knoll --- src/gui/painting/qpdf.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp index cfa0a28fda..1371e3f68e 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1521,6 +1521,7 @@ bool QPdfEngine::begin(QPaintDevice *pdev) d->info = 0; d->graphicsState = 0; d->patternColorSpace = 0; + d->simplePen = false; d->pages.clear(); d->imageCache.clear(); -- cgit v1.2.3