diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-06 05:27:43 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-06 05:29:29 (GMT) |
commit | 0a90113262eab4e05bf73c0b69b1f5633a10e768 (patch) | |
tree | d46195da801b31742974283d87e28bbc73135de8 /src/gui/painting/qprintengine_pdf.cpp | |
parent | 04d9ff19100cab759543c4f9f9e48f482abb699a (diff) | |
download | Qt-0a90113262eab4e05bf73c0b69b1f5633a10e768.zip Qt-0a90113262eab4e05bf73c0b69b1f5633a10e768.tar.gz Qt-0a90113262eab4e05bf73c0b69b1f5633a10e768.tar.bz2 |
Print images with colortable using their colortable in PDF
Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting/qprintengine_pdf.cpp')
-rw-r--r-- | src/gui/painting/qprintengine_pdf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qprintengine_pdf.cpp b/src/gui/painting/qprintengine_pdf.cpp index e73282f..4cccc91 100644 --- a/src/gui/painting/qprintengine_pdf.cpp +++ b/src/gui/painting/qprintengine_pdf.cpp @@ -534,7 +534,7 @@ int QPdfEnginePrivate::addImage(const QImage &img, bool *bitmap, qint64 serial_n QImage image = img; QImage::Format format = image.format(); - if (image.depth() == 1 && *bitmap) { + if (image.depth() == 1 && *bitmap && img.colorTable().size() == 0) { if (format == QImage::Format_MonoLSB) image = image.convertToFormat(QImage::Format_Mono); format = QImage::Format_Mono; |