Changeset 6754


Ignore:
Timestamp:
07/30/10 13:36:16 (9 years ago)
Author:
melissa
Message:

Fixed BGR correction when opening sub-images. See QA #2583.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/AVIReader.java

    r6663 r6754  
    188188        in.read(buf, (i - y)*scanline, scanline); 
    189189        if (bmpBitsPerPixel == 24) { 
    190           for (int j=0; j<getSizeX(); j++) { 
     190          for (int j=0; j<w; j++) { 
    191191            byte r = buf[i*scanline + j*3 + 2]; 
    192192            buf[i*scanline + j*3 + 2] = buf[i*scanline + j*3]; 
  • trunk/components/bio-formats/src/loci/formats/in/AVIReader.java

    r6430 r6754  
    188188        in.read(buf, (i - y)*scanline, scanline); 
    189189        if (bmpBitsPerPixel == 24) { 
    190           for (int j=0; j<getSizeX(); j++) { 
     190          for (int j=0; j<w; j++) { 
    191191            byte r = buf[i*scanline + j*3 + 2]; 
    192192            buf[i*scanline + j*3 + 2] = buf[i*scanline + j*3]; 
Note: See TracChangeset for help on using the changeset viewer.