Changeset 1819


Ignore:
Timestamp:
11/17/06 15:05:55 (13 years ago)
Author:
curtis
Message:

Fix bugs in some OME-XML metadata setter methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/OMEXMLMetadataStore.java

    r1715 r1819  
    389389    int ndx = i == null ? 0 : i.intValue(); 
    390390    // TODO find a better way to specify which Dimensions we want 
    391     ImageNode image = (ImageNode) getChild(root, "Image", ndx); 
     391    ImageNode image = (ImageNode) getChild(root, "Image", 0); 
    392392    CustomAttributesNode ca = (CustomAttributesNode) 
    393393      getChild(image, "CustomAttributes", 0); 
     
    414414    CustomAttributesNode ca = (CustomAttributesNode) 
    415415      getChild(image, "CustomAttributes", 0); 
    416     DisplayROINode displayROI = (DisplayROINode) getChild(ca, "DisplayROI", 0); 
     416    DisplayROINode displayROI = (DisplayROINode) 
     417      getChild(ca, "DisplayROI", ndx); 
    417418    displayROI.setX0(x0); 
    418419    displayROI.setY0(y0); 
     
    436437    int ndx = i == null ? 0 : i.intValue(); 
    437438    // TODO find a better way to specify which Pixels we want 
    438     ImageNode image = (ImageNode) getChild(root, "Image", ndx); 
     439    ImageNode image = (ImageNode) getChild(root, "Image", 0); 
    439440    CustomAttributesNode ca = (CustomAttributesNode) 
    440441      getChild(image, "CustomAttributes", 0); 
     
    456457    ImageNode image = (ImageNode) getChild(root, "Image", 0); 
    457458    CustomAttributesNode ca = (CustomAttributesNode) 
    458       getChild(root, "CustomAttributes", 0); 
     459      getChild(image, "CustomAttributes", 0); 
    459460    StageLabelNode stageLabel = 
    460461      (StageLabelNode) getChild(ca, "StageLabel", ndx); 
Note: See TracChangeset for help on using the changeset viewer.