Changeset 4128


Ignore:
Timestamp:
06/21/08 14:46:20 (11 years ago)
Author:
melissa
Message:

Fixed remainder of openBytes copying problems.

Location:
trunk/loci/formats/in
Files:
3 edited

Legend:

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

    r4123 r4128  
    147147    RandomAccessStream plane = getFile(file); 
    148148    Hashtable[] ifds = TiffTools.getIFDs(plane); 
    149     buf = TiffTools.getSamples(ifds[0], plane, buf, x, y, w, h); 
     149    TiffTools.getSamples(ifds[0], plane, buf, x, y, w, h); 
    150150    plane.close(); 
    151151    ifds = null; 
  • trunk/loci/formats/in/LegacyQTReader.java

    r4048 r4128  
    8282    throws FormatException, IOException 
    8383  { 
    84     buf = ImageTools.getBytes(openImage(no, x, y, w, h), false, 3); 
     84    byte[] tmp = ImageTools.getBytes(openImage(no, x, y, w, h), false, 3); 
     85    System.arraycopy(tmp, 0, buf, 0, (int) Math.min(tmp.length, buf.length)); 
    8586    return buf; 
    8687  } 
  • trunk/loci/formats/in/MNGReader.java

    r4048 r4128  
    7171    throws FormatException, IOException 
    7272  { 
    73     buf = ImageTools.getBytes(openImage(no, x, y, w, h), true, 
     73    byte[] tmp = ImageTools.getBytes(openImage(no, x, y, w, h), true, 
    7474      core.sizeC[series]); 
     75    System.arraycopy(tmp, 0, buf, 0, (int) Math.min(tmp.length, buf.length)); 
    7576    return buf; 
    7677  } 
Note: See TracChangeset for help on using the changeset viewer.