Changeset 4799


Ignore:
Timestamp:
02/11/09 10:58:42 (11 years ago)
Author:
melissa
Message:

Check that LogicalChannel index is valid before linking a LightSource to a LogicalChannel.

File:
1 edited

Legend:

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

    r4755 r4799  
    724724        store.setLaserType(laserType, 0, nextLaser); 
    725725 
    726         // link Laser (LightSource) to Image 
    727         store.setLightSourceID("LightSource:" + nextLaser, 0, nextLaser); 
    728         store.setLightSourceSettingsLightSource("LightSource:" + nextLaser, 
    729           0, nextLaser); 
     726        if (nextLaser < getEffectiveSizeC()) { 
     727          // link Laser (LightSource) to Image 
     728          store.setLightSourceID("LightSource:" + nextLaser, 0, nextLaser); 
     729          store.setLightSourceSettingsLightSource("LightSource:" + nextLaser, 
     730            0, nextLaser); 
     731        } 
    730732 
    731733        nextLaser++; 
Note: See TracChangeset for help on using the changeset viewer.