Changeset 5665


Ignore:
Timestamp:
11/04/09 10:36:26 (10 years ago)
Author:
melissa
Message:

Prevent AIOOB if the tile index is greater than the total number of tiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/ZeissZVIReader.java

    r5664 r5665  
    289289              ii += firstTile; 
    290290 
     291              if (ii >= imageFiles.length) { 
     292                colOffset += tileW; 
     293                if (colOffset >= w) { 
     294                  colOffset = 0; 
     295                  rowOffset += tileH; 
     296                } 
     297                continue; 
     298              } 
    291299              RandomAccessInputStream s = poi.getDocumentStream(imageFiles[ii]); 
    292300              s.seek(offsets[ii]); 
Note: See TracChangeset for help on using the changeset viewer.