Changeset 6744 for trunk


Ignore:
Timestamp:
07/28/10 10:28:20 (10 years ago)
Author:
melissa
Message:

Force buffer reallocation if the previously allocated buffer is too small.

File:
1 edited

Legend:

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

    r6713 r6744  
    306306      int c = no % getSizeC(); 
    307307 
    308       if (prevPlane != plane || prevBuf == null) { 
     308      if (prevPlane != plane || prevBuf == null || 
     309        prevBuf.length < buf.length * getSizeC()) 
     310      { 
    309311        prevBuf = new byte[buf.length * getSizeC()]; 
    310312        tiffParser.getSamples(ifds.get(plane), prevBuf, x, y, w, h); 
Note: See TracChangeset for help on using the changeset viewer.