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

Commit

Permalink
Don't act on format of image and then read alpha channel from noneSca…
Browse files Browse the repository at this point in the history
  • Loading branch information
poizan42 committed Sep 2, 2014
1 parent 82b568b commit b18df9f
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 b18df9f

Please sign in to comment.