Changeset 7239


Ignore:
Timestamp:
11/23/10 19:31:00 (10 years ago)
Author:
melissa
Message:

Remove BinData elements from a copy of the writer's MetadataRetrieve, instead of modifying the MetadataRetrieve directly. Closes #605.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/out/OMETiffWriter.java

    r7149 r7239  
    198198    ServiceFactory factory = new ServiceFactory(); 
    199199    service = factory.getInstance(OMEXMLService.class); 
    200     omeMeta = service.getOMEMetadata(retrieve); 
    201     if (omeMeta instanceof OMEXMLMetadataImpl) { 
    202       ((OMEXMLMetadataImpl) omeMeta).resolveReferences(); 
     200    OMEXMLMetadata originalOMEMeta = service.getOMEMetadata(retrieve); 
     201    if (originalOMEMeta instanceof OMEXMLMetadataImpl) { 
     202      ((OMEXMLMetadataImpl) originalOMEMeta).resolveReferences(); 
     203 
     204      String omexml = service.getOMEXML(originalOMEMeta); 
     205      omeMeta = service.createOMEXMLMetadata(omexml); 
    203206    } 
    204207  } 
Note: See TracChangeset for help on using the changeset viewer.