Changeset 3336


Ignore:
Timestamp:
11/01/07 09:52:41 (12 years ago)
Author:
melissa
Message:

Make sure PixelSizeZ is always parsed, even if SizeZ == 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/LIFReader.java

    r3334 r3336  
    301301          } 
    302302        } 
    303         /* 
    304303        else if (token.indexOf("dblVoxel") != -1) { 
    305304          int index = token.indexOf("Variant") + 7; 
     
    307306            token.indexOf("\"", index + 3)); 
    308307          float cal = Float.parseFloat(size) * 1000000; 
    309           if (token.indexOf("X") != -1) xcal.add(new Float(cal)); 
    310           else if (token.indexOf("Y") != -1) ycal.add(new Float(cal)); 
    311           else if (token.indexOf("Z") != -1) zcal.add(new Float(cal)); 
    312         } 
    313         */ 
     308          if (token.indexOf("Z") != -1 && xcal.size() > zcal.size()) { 
     309            zcal.add(new Float(cal)); 
     310          } 
     311        } 
    314312      } 
    315313      else if (token.startsWith("Element Name")) { 
Note: See TracChangeset for help on using the changeset viewer.