Changeset 4667


Ignore:
Timestamp:
12/02/08 12:45:55 (11 years ago)
Author:
melissa
Message:

Fixed image count reported by PrairieReader when the base file is a TIFF.

File:
1 edited

Legend:

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

    r4655 r4667  
    210210      is.close(); 
    211211 
     212      if (checkSuffix(id, XML_SUFFIX)) { 
     213        core[0].imageCount = 0; 
     214      } 
     215 
    212216      DefaultHandler handler = new PrairieHandler(); 
    213217      DataTools.parseXML(b, handler); 
     
    244248        store.setDimensionsPhysicalSizeY(new Float(pixelSizeY), 0, 0); 
    245249        for (int i=0; i<getSizeC(); i++) { 
    246           String gain = (String) gains.get(i); 
    247           String offset = (String) offsets.get(i); 
     250          String gain = i < gains.size() ? (String) gains.get(i) : null; 
     251          String offset = i < offsets.size() ? (String) offsets.get(i) : null; 
    248252 
    249253          if (offset != null) { 
Note: See TracChangeset for help on using the changeset viewer.