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>
d->info = 0;
d->graphicsState = 0;
d->patternColorSpace = 0;
+ d->simplePen = false;
d->pages.clear();
d->imageCache.clear();
QFile file2("out2.ps");
QVERIFY(file2.open(QIODevice::ReadOnly));
-#ifndef Q_OS_WIN
- QEXPECT_FAIL("", "QTBUG-22562, QTBUG-22296", Abort);
-#endif
QCOMPARE(file1.readAll(), file2.readAll());
}