Changeset 6299


Ignore:
Timestamp:
05/12/10 18:14:18 (10 years ago)
Author:
curtis
Message:

Add bounds checking for laser wavelength.

File:
1 edited

Legend:

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

    r6230 r6299  
    752752      l.wavelength = new Integer(attributes.getValue("LaserLine")); 
    753753      store.setLaserID(l.id, numDatasets, l.index); 
    754       store.setLaserWavelength( 
    755         new PositiveInteger(l.wavelength), numDatasets, l.index); 
     754      if (l.wavelength > 0) { 
     755        store.setLaserWavelength( 
     756          new PositiveInteger(l.wavelength), numDatasets, l.index); 
     757      } 
    756758      store.setLaserType(LaserType.OTHER, numDatasets, l.index); 
    757759      store.setLaserLaserMedium(LaserMedium.OTHER, numDatasets, l.index); 
Note: See TracChangeset for help on using the changeset viewer.