Changeset 5675 for branches/4.1


Ignore:
Timestamp:
11/06/09 08:25:41 (11 years ago)
Author:
melissa
Message:

Check that TIFF comment has not been truncated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/components/bio-formats/src/loci/formats/in/MetamorphTiffReader.java

    r5517 r5675  
    6666    String comment = tp.getComment(); 
    6767    if (comment == null) return false; 
    68     return comment.trim().startsWith("<MetaData>"); 
     68    comment = comment.trim(); 
     69    return comment.startsWith("<MetaData>") && comment.endsWith("</MetaData>"); 
    6970  } 
    7071 
     
    139140        String stamp = timestamps.get(coords[2]); 
    140141        long ms = DateTools.getTime(stamp, parse); 
    141         store.setPlaneTimingDeltaT(new Float((ms - startDate) / 1000f), 
     142        store.setPlaneTimingDeltaT(new Float((ms - startDate) / 1000.0), 
    142143          0, 0, i); 
    143144      } 
Note: See TracChangeset for help on using the changeset viewer.