Changeset 3363


Ignore:
Timestamp:
11/12/07 12:09:19 (13 years ago)
Author:
melissa
Message:

Reset previousImage if the series number was changed.

File:
1 edited

Legend:

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

    r3361 r3363  
    7272  // -- Fields -- 
    7373 
     74  private int previousSeries; 
    7475  private byte[][][] previousImage; 
    7576  private int previousImageNumber; 
     
    102103    int[] oldZCT = previousImageNumber == -1 ? new int[] {-1, -1, -1} : 
    103104      FormatTools.getZCTCoords(this, previousImageNumber); 
    104     if (zct[1] != oldZCT[1] || zct[2] != oldZCT[2]) { 
     105    if (zct[1] != oldZCT[1] || zct[2] != oldZCT[2] || series != previousSeries) 
     106    { 
    105107      try { 
    106108        r.exec("ncfile = NetcdfFile.open(currentId)"); 
     
    127129        core.sizeX[series]); 
    128130    } 
     131    previousSeries = series; 
    129132 
    130133    return buf; 
     
    143146  public void close() throws IOException { 
    144147    super.close(); 
     148    previousSeries = -1; 
    145149    previousImageNumber = -1; 
    146150    previousImage = null; 
Note: See TracChangeset for help on using the changeset viewer.