summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qprintengine_ps.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-10-06 07:55:12 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-10-06 08:02:24 (GMT)
commit39dc3026d1da03d5fcf8e5c516fadd7e4ea8a861 (patch)
tree83d3044cdf90e765c8aa34c4b8a38e708b206595 /src/gui/painting/qprintengine_ps.cpp
parentb1c5547c5682e57b746e3bc8ac616ebbd23c12b8 (diff)
downloadQt-39dc3026d1da03d5fcf8e5c516fadd7e4ea8a861.zip
Qt-39dc3026d1da03d5fcf8e5c516fadd7e4ea8a861.tar.gz
Qt-39dc3026d1da03d5fcf8e5c516fadd7e4ea8a861.tar.bz2
Don't output redundant setPen command when reusing PS printer
If you reused a printer to paint to several different files, the results would sometimes be different, as the subsequent runs would have redundant setPen commands in its output. This was because the simplePen flag was not reset to its initial value when reusing the print engine. Task-number: QTBUG-4479 Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting/qprintengine_ps.cpp')
-rw-r--r--src/gui/painting/qprintengine_ps.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qprintengine_ps.cpp b/src/gui/painting/qprintengine_ps.cpp
index 772a30d..b740fbc 100644
--- a/src/gui/painting/qprintengine_ps.cpp
+++ b/src/gui/painting/qprintengine_ps.cpp
@@ -751,6 +751,7 @@ bool QPSPrintEngine::begin(QPaintDevice *pdev)
d->boundingBox = QRect();
d->fontsUsed = "";
d->hugeDocument = false;
+ d->simplePen = false;
setActive(true);
d->printerState = QPrinter::Active;