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
  • branches/4.2/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java

    r6663 r6744  
    303303      int c = no % getSizeC(); 
    304304 
    305       if (prevPlane != plane || prevBuf == null) { 
     305      if (prevPlane != plane || prevBuf == null || 
     306        prevBuf.length < buf.length * getSizeC()) 
     307      { 
    306308        prevBuf = new byte[buf.length * getSizeC()]; 
    307309        tiffParser.getSamples(ifds.get(plane), prevBuf, x, y, w, h); 
Note: See TracChangeset for help on using the changeset viewer.