summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qprintengine_pdf.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-10-06 05:27:43 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-06 05:29:29 (GMT)
commit0a90113262eab4e05bf73c0b69b1f5633a10e768 (patch)
treed46195da801b31742974283d87e28bbc73135de8 /src/gui/painting/qprintengine_pdf.cpp
parent04d9ff19100cab759543c4f9f9e48f482abb699a (diff)
downloadQt-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.cpp2
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;