summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-03-25 14:52:04 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-03-25 14:53:02 (GMT)
commitdfbabeca0cb8a9efdb6758c228700eeb5996652c (patch)
tree42598fd46dbde25acb47953d3f75799ccfd2e4ea /src/plugins/imageformats
parent1e6c23469ea78f6ff5a3a546c08ae22a5ba79356 (diff)
downloadQt-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.cpp4
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;