Changeset 2000


Ignore:
Timestamp:
01/03/07 11:51:38 (13 years ago)
Author:
melissa
Message:

Fixed bug in isThisType.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/PrairieReader.java

    r1999 r2000  
    8080    // just checking the filename isn't enough to differentiate between 
    8181    // Prairie and regular TIFF; open the file and check more thoroughly 
    82     return open ? checkBytes(getMappedId(name), 1024) : true; 
     82    return open ? checkBytes(getMappedId(name), 524304) : true; 
    8383  } 
    8484 
     
    9696 
    9797    int ifdlocation = DataTools.bytesToInt(block, 4, little); 
     98     
    9899    if (ifdlocation < 0) return false; 
    99100    else if (ifdlocation + 1 > block.length) return true; 
Note: See TracChangeset for help on using the changeset viewer.