Ignore:
Timestamp:
09/24/10 11:01:03 (10 years ago)
Author:
melissa
Message:

Only populate a channel's excitation wavelength if the wavelength is actually a positive integer.

File:
1 edited

Legend:

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

    r6687 r6981  
    518518        } 
    519519        else if (id.endsWith("WaveLength")) { 
    520           channel.exWave = new PositiveInteger(new Integer(value)); 
     520          Integer exWave = new Integer(value); 
     521          if (exWave > 0) { 
     522            channel.exWave = new PositiveInteger(exWave); 
     523          } 
    521524        } 
    522525        // NB: "UesrDefName" is not a typo. 
Note: See TracChangeset for help on using the changeset viewer.