diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-05-11 10:35:53 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-05-11 10:35:53 (GMT) |
commit | a2ccdc36d0e80f7274ed0551c819bedcddc2f4cc (patch) | |
tree | 55a19156916f0668770edcec8a479609963d1779 /src/gui/painting/qprinter.cpp | |
parent | 540092f4cc35238c258bb6422912d3eb18b26f33 (diff) | |
parent | 5299240db14579960358edeebfc72fcef905af13 (diff) | |
download | Qt-a2ccdc36d0e80f7274ed0551c819bedcddc2f4cc.zip Qt-a2ccdc36d0e80f7274ed0551c819bedcddc2f4cc.tar.gz Qt-a2ccdc36d0e80f7274ed0551c819bedcddc2f4cc.tar.bz2 |
Merge branch '4.5'
Diffstat (limited to 'src/gui/painting/qprinter.cpp')
-rw-r--r-- | src/gui/painting/qprinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qprinter.cpp b/src/gui/painting/qprinter.cpp index 5efe0be..154d90c 100644 --- a/src/gui/painting/qprinter.cpp +++ b/src/gui/painting/qprinter.cpp @@ -773,8 +773,8 @@ void QPrinter::setOutputFormat(OutputFormat format) if (def_engine) delete oldPrintEngine; - d->validPrinter = (d->outputFormat == QPrinter::PdfFormat - || d->outputFormat == QPrinter::PostScriptFormat); + if (d->outputFormat == QPrinter::PdfFormat || d->outputFormat == QPrinter::PostScriptFormat) + d->validPrinter = true; #else Q_UNUSED(format); #endif |