diff --git a/src/common/imagtiff.cpp b/src/common/imagtiff.cpp index 59b7fb9b43..a10940d63c 100644 --- a/src/common/imagtiff.cpp +++ b/src/common/imagtiff.cpp @@ -658,7 +658,7 @@ bool wxTIFFHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbo uint8 reverse = 0; for ( int bp = 0; bp < 8; bp++ ) { - if ( ptr[column*24 + bp*3] > 0 ) + if ( ptr[column*24 + bp*3] > 127 ) { // check only red as this is sufficient reverse = (uint8)(reverse | 128 >> bp);