Changeset 2399


Ignore:
Timestamp:
03/07/07 15:00:27 (13 years ago)
Author:
curtis
Message:

Fix bug in channel separator caching with multiple series.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/ChannelSeparator.java

    r2320 r2399  
    3838  /** Index of last image opened. */ 
    3939  private int lastImageIndex = -1; 
     40 
     41  /** Series of last image opened. */ 
     42  private int lastImageSeries = -1; 
    4043 
    4144  // -- Constructors -- 
     
    134137      int source = no / c; 
    135138      int channel = no % c; 
     139      int series = getSeries(id); 
    136140 
    137       if (source != lastImageIndex) { 
     141      if (source != lastImageIndex || series != lastImageSeries) { 
    138142        lastImage = reader.openBytes(id, source); 
    139143        lastImageIndex = source; 
     144        lastImageSeries = series; 
    140145      } 
    141146 
     
    157162    lastImage = null; 
    158163    lastImageIndex = -1; 
     164    lastImageSeries = -1; 
    159165  } 
    160166 
Note: See TracChangeset for help on using the changeset viewer.