Changeset 4742


Ignore:
Timestamp:
01/13/09 15:52:29 (11 years ago)
Author:
melissa
Message:

Adjust the number of rows per strip if the original value is greater than the image length.

File:
1 edited

Legend:

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

    r4686 r4742  
    11851185 
    11861186    long rowsPerStrip = rowsPerStripArray[0]; 
     1187    // rowsPerStrip should never be more than the total number of rows 
     1188    rowsPerStrip = (long) Math.min(rowsPerStrip, imageLength); 
    11871189    for (int i=1; i<rowsPerStripArray.length; i++) { 
    11881190      if (rowsPerStrip != rowsPerStripArray[i]) { 
Note: See TracChangeset for help on using the changeset viewer.