Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from poizan42/wk_4.8.6
Browse files Browse the repository at this point in the history
Don't act on format of image and then read alpha channel from noneScaled...
  • Loading branch information
antialize committed Sep 2, 2014
2 parents 82b568b + b18df9f commit c84e440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/painting/qprintengine_pdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ int QPdfEnginePrivate::addImage(const QImage &img, bool *bitmap, qint64 serial_n
bool hasAlpha = false;
bool hasMask = false;

if (format != QImage::Format_RGB32) {
if ((!uns && format == QImage::Format_ARGB32) || (uns && noneScaled->format() == QImage::Format_ARGB32)) {
softMaskData.resize(w * h);
uchar *sdata = (uchar *)softMaskData.data();
for (int y = 0; y < h; ++y) {
Expand Down

0 comments on commit c84e440

Please sign in to comment.