Changeset 3996


Ignore:
Timestamp:
05/02/08 15:15:28 (12 years ago)
Author:
melissa
Message:

Fixed image names, hopefully for the last time.

File:
1 edited

Legend:

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

    r3979 r3996  
    380380        else if (n == 'h') hCount++; 
    381381        else if (n == 'j') { 
    382           // this block should contain an image name 
    383           in.skipBytes(14); 
    384           if (nextName < imageNames.length) { 
    385             imageNames[nextName++] = in.readCString().trim(); 
     382          in.skipBytes(2); 
     383          String check = in.readString(2); 
     384          if (check.equals("II") || check.equals("MM")) { 
     385            // this block should contain an image name 
     386            in.skipBytes(10); 
     387            if (nextName < imageNames.length) { 
     388              imageNames[nextName++] = in.readCString().trim(); 
     389            } 
    386390          } 
    387391        } 
Note: See TracChangeset for help on using the changeset viewer.