Changeset 3425


Ignore:
Timestamp:
11/29/07 10:37:40 (12 years ago)
Author:
melissa
Message:

Allow for array of strings in image description.

File:
1 edited

Legend:

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

    r3354 r3425  
    6565      if (ifd == null) return false; 
    6666 
    67       String comment = 
    68         (String) ifd.get(new Integer(TiffTools.IMAGE_DESCRIPTION)); 
     67      Object c = ifd.get(new Integer(TiffTools.IMAGE_DESCRIPTION)); 
     68      String comment = c instanceof String ? (String) c : 
     69        c instanceof String[] ? ((String[]) c)[0] : null; 
    6970      return comment == null ? false : comment.indexOf("Improvision") != -1; 
    7071    } 
Note: See TracChangeset for help on using the changeset viewer.