Changeset 7581


Ignore:
Timestamp:
01/24/11 15:50:11 (9 years ago)
Author:
melissa
Message:

Prevent extra Plane(Timing).ExposureTime attributes from being populated.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/components/bio-formats/src/loci/formats/in/LeicaHandler.java

    r6822 r7581  
    465465        Channel channel = channels.get(numDatasets + "-" + c); 
    466466        if (channel == null) channel = new Channel(); 
    467         if (id.endsWith("ExposureTime")) { 
     467        if (id.endsWith("ExposureTime") && c < numChannels) { 
    468468          store.setPlaneTimingExposureTime(new Float(value), 
    469469            numDatasets, 0, c); 
  • branches/4.2/components/bio-formats/src/loci/formats/in/LeicaHandler.java

    r7317 r7581  
    508508        Channel channel = channels.get(numDatasets + "-" + c); 
    509509        if (channel == null) channel = new Channel(); 
    510         if (id.endsWith("ExposureTime")) { 
     510        if (id.endsWith("ExposureTime") && c < numChannels) { 
    511511          try { 
    512512            store.setPlaneExposureTime(new Double(value), numDatasets, c); 
  • trunk/components/bio-formats/src/loci/formats/in/LeicaHandler.java

    r7317 r7581  
    508508        Channel channel = channels.get(numDatasets + "-" + c); 
    509509        if (channel == null) channel = new Channel(); 
    510         if (id.endsWith("ExposureTime")) { 
     510        if (id.endsWith("ExposureTime") && c < numChannels) { 
    511511          try { 
    512512            store.setPlaneExposureTime(new Double(value), numDatasets, c); 
Note: See TracChangeset for help on using the changeset viewer.