X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c5ab9ebc3a7dd441c9e3b25cb3daf8f733c374f..0bddb3cc6fbe51996d0cab95f8ce46017a8d0311:/src/common/imagtiff.cpp diff --git a/src/common/imagtiff.cpp b/src/common/imagtiff.cpp index 088dd14979..4fb132a42d 100644 --- a/src/common/imagtiff.cpp +++ b/src/common/imagtiff.cpp @@ -193,7 +193,7 @@ bool wxTIFFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos for (uint32 i = 0; i < h; i++) { - for (uint32 j = 0; j < h; j++) + for (uint32 j = 0; j < w; j++) { unsigned char alpha = (unsigned char)TIFFGetA(raster[pos]); if (alpha < 127)