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 624740cdcd.

Change-Id: I3f1fa17309fcb53995520843449aae972e0090b8
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
Allan Sandfeld Jensen 2014-12-15 16:14:36 +01:00
parent 627afca13c
commit c4bee2c47f

View File

@ -2083,10 +2083,8 @@ int QPdfEnginePrivate::writeImage(const QByteArray &data, int width, int height,
} }
if (maskObject > 0) if (maskObject > 0)
xprintf("/Mask %d 0 R\n", maskObject); xprintf("/Mask %d 0 R\n", maskObject);
if (softMaskObject > 0) { if (softMaskObject > 0)
xprintf("/SMask %d 0 R\n", softMaskObject); xprintf("/SMask %d 0 R\n", softMaskObject);
xprintf("/Decode [1 0 1 0 1 0]\n");
}
int lenobj = requestObject(); int lenobj = requestObject();
xprintf("/Length %d 0 R\n", lenobj); xprintf("/Length %d 0 R\n", lenobj);