Changeset 6743


Ignore:
Timestamp:
07/28/10 09:58:48 (9 years ago)
Author:
melissa
Message:

Resolve references immediately, so that they are not lost with the subsequent call to OMEXMLMetadata.setRoot.

File:
1 edited

Legend:

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

    r6694 r6743  
    4747import loci.formats.meta.MetadataRetrieve; 
    4848import loci.formats.ome.OMEXMLMetadata; 
     49import loci.formats.ome.OMEXMLMetadataImpl; 
    4950import loci.formats.services.OMEXMLService; 
    5051import loci.formats.tiff.TiffSaver; 
     
    104105        service = factory.getInstance(OMEXMLService.class); 
    105106        omeMeta = service.getOMEMetadata(retrieve); 
     107        if (omeMeta instanceof OMEXMLMetadataImpl) { 
     108          ((OMEXMLMetadataImpl) omeMeta).resolveReferences(); 
     109        } 
    106110      } 
    107111      catch (DependencyException de) { 
Note: See TracChangeset for help on using the changeset viewer.