Avoid duplicate setPen() in PDF when reusing QPrinter
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Mon, 10 Sep 2012 12:10:41 +0000 (14:10 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 11 Sep 2012 07:35:28 +0000 (09:35 +0200)
commit014ae2ad04cb0d42b95fa19ff3c007591256d3d4
tree96d93443ed8fa7e5888fdb4c086ae6d00f959831
parent260da7a832182698c4ca872c4634fbab02c4880c
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 <qt_docbot@qt-project.org>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/gui/painting/qpdf.cpp
tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp