diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-06-01 08:36:47 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-06-01 08:46:31 (GMT) |
commit | bcafe4a3dde9986ecfdeea43dc592b6f54134893 (patch) | |
tree | 238c7fd1ba202a8fbf5f2db43cec46c95a92d88f /src | |
parent | 9789cdb6c3a6070fffb4644ce52cd176f44c3d48 (diff) | |
download | Qt-bcafe4a3dde9986ecfdeea43dc592b6f54134893.zip Qt-bcafe4a3dde9986ecfdeea43dc592b6f54134893.tar.gz Qt-bcafe4a3dde9986ecfdeea43dc592b6f54134893.tar.bz2 |
Fixed alpha check for mono images.
Task-number: QTBUG-9072
Reviewed-by: Trond
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/image/qimage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp index d46f40e..473f93a 100644 --- a/src/gui/image/qimage.cpp +++ b/src/gui/image/qimage.cpp @@ -272,6 +272,8 @@ bool QImageData::checkForAlphaPixels() const switch (format) { + case QImage::Format_Mono: + case QImage::Format_MonoLSB: case QImage::Format_Indexed8: has_alpha_pixels = has_alpha_clut; break; |