Changeset 2422


Ignore:
Timestamp:
03/09/07 15:13:50 (13 years ago)
Author:
melissa
Message:

Changed OMEXMLMetadataStore.setDimensions to populate PixelSizeX if it is null,
and PixelSizeY is not null (and vice versa).

Location:
trunk/loci/formats
Files:
2 edited

Legend:

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

    r2418 r2422  
    489489    String pixY = (String) getMeta("Scale Factor for Y"); 
    490490    String pixZ = (String) getMeta("Scale Factor for Z"); 
    491  
    492     if (pixX == null && pixY != null) pixX = pixY; 
    493     if (pixY == null && pixX != null) pixY = pixX; 
    494491 
    495492    store.setDimensions( 
  • trunk/loci/formats/ome/OMEXMLMetadataStore.java

    r2327 r2422  
    403403    DimensionsNode dimensions = 
    404404      (DimensionsNode) getChild(ca, "Dimensions", 0); 
     405     
     406    if (pixelSizeX == null && pixelSizeY != null) pixelSizeX = pixelSizeY;  
     407    if (pixelSizeY == null && pixelSizeX != null) pixelSizeY = pixelSizeX;  
     408     
    405409    dimensions.setPixelSizeX(pixelSizeX); 
    406410    dimensions.setPixelSizeY(pixelSizeY); 
Note: See TracChangeset for help on using the changeset viewer.