diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-25 14:52:04 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-25 14:53:02 (GMT) |
commit | dfbabeca0cb8a9efdb6758c228700eeb5996652c (patch) | |
tree | 42598fd46dbde25acb47953d3f75799ccfd2e4ea /src/plugins/imageformats | |
parent | 1e6c23469ea78f6ff5a3a546c08ae22a5ba79356 (diff) | |
download | Qt-dfbabeca0cb8a9efdb6758c228700eeb5996652c.zip Qt-dfbabeca0cb8a9efdb6758c228700eeb5996652c.tar.gz Qt-dfbabeca0cb8a9efdb6758c228700eeb5996652c.tar.bz2 |
Fix warnings and build on mingw
Diffstat (limited to 'src/plugins/imageformats')
-rw-r--r-- | src/plugins/imageformats/tiff/qtiffhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/imageformats/tiff/qtiffhandler.cpp b/src/plugins/imageformats/tiff/qtiffhandler.cpp index 31e0c92..619aa4e 100644 --- a/src/plugins/imageformats/tiff/qtiffhandler.cpp +++ b/src/plugins/imageformats/tiff/qtiffhandler.cpp @@ -385,8 +385,8 @@ static bool checkGrayscale(const QVector<QRgb> &colorTable) const bool increasing = (colorTable.at(0) == 0xff000000); for (int i = 0; i < 256; ++i) { - if (increasing && colorTable.at(i) != qRgb(i, i, i) - || !increasing && colorTable.at(i) != qRgb(255 - i, 255 - i, 255 - i)) + if ((increasing && colorTable.at(i) != qRgb(i, i, i)) + || (!increasing && colorTable.at(i) != qRgb(255 - i, 255 - i, 255 - i))) return false; } return true; |