summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpdf.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2014-12-15 16:14:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2014-12-18 14:42:19 +0100
commitc4bee2c47febb110946e6b80200fb269e6ea9f77 (patch)
tree1d18ff4ffe75bffe026ec6065e06b446a5a770e0 /src/gui/painting/qpdf.cpp
parent627afca13cf1b23489a1c61d1eb66cbdafff91bd (diff)
Revert "Fix printing of semitransparent images to PDF"
The patch was incorrect and caused semi-transparent images have inversed colors instead of fixing it. This reverts commit 624740cdcdd4abfb15bbbc8a8aa056c57712499f. Change-Id: I3f1fa17309fcb53995520843449aae972e0090b8 Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'src/gui/painting/qpdf.cpp')
-rw-r--r--src/gui/painting/qpdf.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp
index 46d016de6b..473231b142 100644
--- a/src/gui/painting/qpdf.cpp
+++ b/src/gui/painting/qpdf.cpp
@@ -2083,10 +2083,8 @@ int QPdfEnginePrivate::writeImage(const QByteArray &data, int width, int height,
}
if (maskObject > 0)
xprintf("/Mask %d 0 R\n", maskObject);
- if (softMaskObject > 0) {
+ if (softMaskObject > 0)
xprintf("/SMask %d 0 R\n", softMaskObject);
- xprintf("/Decode [1 0 1 0 1 0]\n");
- }
int lenobj = requestObject();
xprintf("/Length %d 0 R\n", lenobj);