--- a/src/plugins/imageformats/tiff/qtiffhandler.cpp Wed Jun 23 19:07:03 2010 +0300
+++ b/src/plugins/imageformats/tiff/qtiffhandler.cpp Tue Jul 06 15:10:48 2010 +0300
@@ -385,8 +385,8 @@
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;