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 --- tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp index 4b4756bd5e..ca7fd4f7af 100644 --- a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp +++ b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp @@ -985,9 +985,6 @@ void tst_QPrinter::taskQTBUG4497_reusePrinterOnDifferentFiles() 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()); } -- cgit v1.2.3