Changeset 5129


Ignore:
Timestamp:
05/28/09 09:56:48 (11 years ago)
Author:
melissa
Message:

Fixed tag length calculation bug.

File:
1 edited

Legend:

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

    r5121 r5129  
    1  
     1// 
    22// DicomReader.java 
    33// 
     
    945945        if (n1 < 0) return n2; 
    946946        if (n2 < 0) return n1; 
    947         return (int) Math.min(n1, n2); 
     947        int min = (int) Math.min(n1, n2); 
     948        if (min == n2 && (min % 2) != 0) return n1; 
     949        return min; 
    948950      default: 
    949951        vr = IMPLICIT_VR; 
Note: See TracChangeset for help on using the changeset viewer.