--- generic/tkImgGIF.c +++ generic/tkImgGIF.c @@ -995,7 +995,7 @@ */ if (interlace) { ypos += interlaceStep[pass]; - while (ypos >= height) { + while (ypos >= rows) { pass++; if (pass > 3) { return TCL_OK;