Changeset 4797


Ignore:
Timestamp:
02/10/09 12:44:04 (11 years ago)
Author:
melissa
Message:

Make sure that *all* of the RowsPerStrip entries are less than or equal to the number of rows in the image. Closes #357.

File:
1 edited

Legend:

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

    r4753 r4797  
    11561156    } 
    11571157 
     1158    // rowsPerStrip should never be more than the total number of rows 
     1159    for (int i=0; i<rowsPerStripArray.length; i++) { 
     1160      rowsPerStripArray[i] = (long) Math.min(rowsPerStripArray[i], imageLength); 
     1161    } 
     1162 
    11581163    long rowsPerStrip = rowsPerStripArray[0]; 
    1159     // rowsPerStrip should never be more than the total number of rows 
    1160     rowsPerStrip = (long) Math.min(rowsPerStrip, imageLength); 
    11611164    for (int i=1; i<rowsPerStripArray.length; i++) { 
    11621165      if (rowsPerStrip != rowsPerStripArray[i]) { 
Note: See TracChangeset for help on using the changeset viewer.