Changeset 6981


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

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

Files:
2 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. 
  • trunk/components/bio-formats/src/loci/formats/in/LeicaHandler.java

    r6881 r6981  
    512512        } 
    513513        else if (id.endsWith("WaveLength")) { 
    514           channel.exWave = new PositiveInteger(new Integer(value)); 
     514          Integer exWave = new Integer(value); 
     515          if (exWave > 0) { 
     516            channel.exWave = new PositiveInteger(exWave); 
     517          } 
    515518        } 
    516519        // NB: "UesrDefName" is not a typo. 
Note: See TracChangeset for help on using the changeset viewer.