Changeset 4071


Ignore:
Timestamp:
05/27/08 10:05:04 (12 years ago)
Author:
melissa
Message:

Reverted pixel size scaling logic - it was correct in the first place.

File:
1 edited

Legend:

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

    r4069 r4071  
    353353        ycal = in.readFloat(); 
    354354 
    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         } 
     355        float scaling = units == 3 ? 0.001f : 1.0f; 
    364356 
    365357        xcal *= scaling; 
Note: See TracChangeset for help on using the changeset viewer.