Changeset 2612


Ignore:
Timestamp:
04/12/07 14:18:30 (13 years ago)
Author:
curtis
Message:

Fix bug with micron width and height scaling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/view/TransformHandler.java

    r1989 r2612  
    449449            if (trans instanceof ImageTransform) { 
    450450              ImageTransform it = (ImageTransform) trans; 
    451               map.setRange(0, it.getImageWidth() - 1); 
     451              double mw = it.getMicronWidth(); 
     452              map.setRange(0, mw == mw ? mw : it.getImageWidth() - 1); 
    452453            } 
    453454          } 
     
    456457            if (trans instanceof ImageTransform) { 
    457458              ImageTransform it = (ImageTransform) trans; 
    458               map.setRange(0, it.getImageHeight() - 1); 
     459              double mh = it.getMicronHeight(); 
     460              map.setRange(0, mh == mh ? mh : it.getImageHeight() - 1); 
    459461            } 
    460462          } 
Note: See TracChangeset for help on using the changeset viewer.