Changeset 6267


Ignore:
Timestamp:
05/11/10 08:29:15 (10 years ago)
Author:
melissa
Message:

Fixed calls to IMinMaxStore.setChannelGlobalMinMax(...).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/DeltavisionReader.java

    r6230 r6267  
    607607      IMinMaxStore minMaxStore = (IMinMaxStore) store; 
    608608      for (int i=0; i<minWave.length; i++) { 
    609         minMaxStore.setChannelGlobalMinMax(0, minWave[i], maxWave[i], i); 
     609        if (i < getEffectiveSizeC()) { 
     610          minMaxStore.setChannelGlobalMinMax(i, minWave[i], maxWave[i], 0); 
     611        } 
    610612      } 
    611613    } 
     
    11071109    addGlobalMeta("Wavelength " + (channel + 1) + " max. intensity", max); 
    11081110    if (store instanceof IMinMaxStore) { 
    1109       ((IMinMaxStore) store).setChannelGlobalMinMax(0, min, max, channel); 
     1111      ((IMinMaxStore) store).setChannelGlobalMinMax(channel, min, max, 0); 
    11101112    } 
    11111113  } 
Note: See TracChangeset for help on using the changeset viewer.