diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-04-14 06:36:55 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-04-14 06:36:55 (GMT) |
commit | a683587a5ffd07366d60f1c4eb56aaee090fcbc4 (patch) | |
tree | 2403a648b9b0a4bd68823cdfa38a9d69e2252100 /src/gui/image/qpixmap_x11.cpp | |
parent | 90de3e5c903b67b2e5f3d7dc14266fe24f1daa23 (diff) | |
parent | e2b31c909912c24bd87a4454dca8ae766e9aca52 (diff) | |
download | Qt-a683587a5ffd07366d60f1c4eb56aaee090fcbc4.zip Qt-a683587a5ffd07366d60f1c4eb56aaee090fcbc4.tar.gz Qt-a683587a5ffd07366d60f1c4eb56aaee090fcbc4.tar.bz2 |
Merge remote branch 'staging/4.7' into bearermanagement/mobility-changes-squash
Diffstat (limited to 'src/gui/image/qpixmap_x11.cpp')
-rw-r--r-- | src/gui/image/qpixmap_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap_x11.cpp b/src/gui/image/qpixmap_x11.cpp index 5a882af..6bebefc 100644 --- a/src/gui/image/qpixmap_x11.cpp +++ b/src/gui/image/qpixmap_x11.cpp @@ -383,7 +383,7 @@ struct QX11AlphaDetector return has; // Will implicitly also check format and return quickly for opaque types... checked = true; - has = const_cast<QImage *>(image)->data_ptr()->checkForAlphaPixels(); + has = image->isNull() ? false : const_cast<QImage *>(image)->data_ptr()->checkForAlphaPixels(); return has; } |