Changeset 2566


Ignore:
Timestamp:
04/06/07 12:41:24 (13 years ago)
Author:
melissa
Message:

Fixed bug that caused an ArrayIndexOutOfBoundsException when populating channel
minimum and maximum values.

File:
1 edited

Legend:

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

    r2510 r2566  
    545545    // but don't have a place really to store this in OME-XML we're just going 
    546546    // to store it in instance variables. 
    547     if (channelMinimum == null || channelMinimum.length <= ndx) { 
     547    if (channelMinimum == null || channelMinimum.length <= channel) { 
    548548      // expand channel minimum list 
    549       double[] min = new double[ndx + 1]; 
     549      double[] min = new double[channel + 1]; 
    550550      Arrays.fill(min, Double.NaN); 
    551551      if (channelMinimum != null) { 
     
    555555    } 
    556556 
    557     if (channelMaximum == null || channelMaximum.length <= ndx) { 
     557    if (channelMaximum == null || channelMaximum.length <= channel) { 
    558558      // expand channel maximum list 
    559       double[] max = new double[ndx + 1]; 
     559      double[] max = new double[channel + 1]; 
    560560      Arrays.fill(max, Double.NaN); 
    561561      if (channelMaximum != null) { 
Note: See TracChangeset for help on using the changeset viewer.