Changeset 4069


Ignore:
Timestamp:
05/27/08 09:09:54 (12 years ago)
Author:
melissa
Message:

Fixed pixel size scaling bug.

File:
1 edited

Legend:

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

    r4061 r4069  
    353353        ycal = in.readFloat(); 
    354354 
    355         float scaling = units == 3 ? 0.001f : 1.0f; 
     355        float scaling = 1.0f; 
     356        switch (units) { 
     357          case 3: 
     358            scaling = 0.001f; 
     359            break; 
     360          case 4: 
     361            scaling = 100f; 
     362            break; 
     363        } 
    356364 
    357365        xcal *= scaling; 
Note: See TracChangeset for help on using the changeset viewer.