Changeset 2150


Ignore:
Timestamp:
01/22/07 15:27:02 (13 years ago)
Author:
melissa
Message:

Changed initFile to check if id is the array returned by getUsedFiles(currentId).

File:
1 edited

Legend:

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

    r2141 r2150  
    138138   */ 
    139139  protected void initFile(String id) throws FormatException, IOException { 
     140    if (currentId != null) { 
     141      String[] s = getUsedFiles(currentId); 
     142      for (int i=0; i<s.length; i++) { 
     143        if (id.equals(s[i])) return; 
     144      } 
     145    } 
     146 
    140147    close(); 
    141148    currentId = id; 
Note: See TracChangeset for help on using the changeset viewer.