Changeset 6665


Ignore:
Timestamp:
07/08/10 09:47:50 (9 years ago)
Author:
melissa
Message:

Only overwrite the dimensions if the new values are sane.

Files:
2 edited

Legend:

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

    r5093 r6665  
    677677 
    678678        // extract dimensional parameters from measure info 
    679         width = scanX; 
    680         height = scanY; 
    681         timeBins = adcRE; 
    682         channels = scanRX; 
     679        if (scanX > 0) width = scanX; 
     680        if (scanY > 0) height = scanY; 
     681        if (adcRE > 0) timeBins = adcRE; 
     682        if (scanRX > 0) channels = scanRX; 
    683683      } 
    684684 
  • trunk/components/bio-formats/src/loci/formats/in/SDTInfo.java

    r5093 r6665  
    677677 
    678678        // extract dimensional parameters from measure info 
    679         width = scanX; 
    680         height = scanY; 
    681         timeBins = adcRE; 
    682         channels = scanRX; 
     679        if (scanX > 0) width = scanX; 
     680        if (scanY > 0) height = scanY; 
     681        if (adcRE > 0) timeBins = adcRE; 
     682        if (scanRX > 0) channels = scanRX; 
    683683      } 
    684684 
Note: See TracChangeset for help on using the changeset viewer.