Changeset 2169


Ignore:
Timestamp:
01/26/07 16:48:01 (13 years ago)
Author:
melissa
Message:

Moved used files logic, so as not to interfere with image count calculation.

File:
1 edited

Legend:

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

    r2168 r2169  
    625625    } 
    626626    files = fp.getFiles(); 
    627     String[][] s = new String[files.length][]; 
    628     int total = files.length; 
    629     for (int i=0; i<files.length; i++) { 
    630       s[i] = reader.getUsedFiles(files[i]); 
    631       total += s[i].length; 
    632     } 
    633     String[] tmp = files; 
    634     files = new String[total]; 
    635     System.arraycopy(tmp, 0, files, 0, tmp.length); 
    636     int off = tmp.length; 
    637     for (int i=0; i<s.length; i++) { 
    638       System.arraycopy(s[i], 0, files, off, s[i].length);  
    639       off += s[i].length; 
    640     } 
    641627 
    642628    if (files == null) { 
     
    735721    } 
    736722    setSeries(currentId, oldSeries); 
     723   
     724    String[][] s = new String[files.length][]; 
     725    int total = files.length; 
     726    for (int i=0; i<files.length; i++) { 
     727      s[i] = reader.getUsedFiles(files[i]); 
     728      total += s[i].length; 
     729    } 
     730    String[] tmp = files; 
     731    files = new String[total]; 
     732    System.arraycopy(tmp, 0, files, 0, tmp.length); 
     733    int off = tmp.length; 
     734    for (int i=0; i<s.length; i++) { 
     735      System.arraycopy(s[i], 0, files, off, s[i].length);  
     736      off += s[i].length; 
     737    } 
    737738  } 
    738739 
Note: See TracChangeset for help on using the changeset viewer.