--- ray/src/px/x11image.c 1992/06/24 09:17:39 2.10 +++ ray/src/px/x11image.c 1992/08/21 13:49:30 2.11 @@ -939,7 +939,7 @@ int y; if (fseek(fin, scanpos[y], 0) == -1) quiterr("fseek error"); cury = y; - } else if (scanpos != NULL) + } else if (scanpos != NULL && scanpos[y] == -1) scanpos[y] = ftell(fin); if (freadcolrs(scanline, xmax, fin) < 0)