Changeset 6404


Ignore:
Timestamp:
05/27/10 10:03:40 (9 years ago)
Author:
melissa
Message:

Trim the image name before placing it in the original metadata hashtable. See  omero:2422.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/FluoviewReader.java

    r6376 r6404  
    159159      put("Image Type", ras.read()); 
    160160 
    161       put("Image name", ras.readString(257)); 
     161      String name = ras.readString(257); 
     162      name = name.substring(0, name.indexOf("\0")); 
     163      put("Image name", name); 
    162164 
    163165      ras.skipBytes(4); // skip pointer to data field 
  • trunk/components/bio-formats/src/loci/formats/in/FluoviewReader.java

    r6377 r6404  
    159159      put("Image Type", ras.read()); 
    160160 
    161       put("Image name", ras.readString(257)); 
     161      String name = ras.readString(257); 
     162      name = name.substring(0, name.indexOf("\0")); 
     163      put("Image name", name); 
    162164 
    163165      ras.skipBytes(4); // skip pointer to data field 
Note: See TracChangeset for help on using the changeset viewer.