Changeset 6713


Ignore:
Timestamp:
07/20/10 09:29:22 (9 years ago)
Author:
melissa
Message:

Prevent ArithmeticException if stage coordinates are not present.

File:
1 edited

Legend:

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

    r6697 r6713  
    932932          store.setPlaneExposureTime(nextStamp - thisStamp, series, i); 
    933933        } 
    934         int stage = i / (getImageCount() / xCoordinates.size()); 
    935         store.setPlanePositionX(xCoordinates.get(stage), series, i); 
    936         store.setPlanePositionY(yCoordinates.get(stage), series, i); 
     934        if (xCoordinates.size() > 0) { 
     935          int stage = i / (getImageCount() / xCoordinates.size()); 
     936          store.setPlanePositionX(xCoordinates.get(stage), series, i); 
     937          store.setPlanePositionY(yCoordinates.get(stage), series, i); 
     938        } 
    937939      } 
    938940    } 
Note: See TracChangeset for help on using the changeset viewer.