Changeset 7502


Ignore:
Timestamp:
01/11/11 12:56:29 (9 years ago)
Author:
melissa
Message:

Don't overwrite existing image names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/FileStitcher.java

    r7474 r7502  
    861861    // don't overwrite pixel info if files aren't actually grouped 
    862862    if (!noStitch) { 
    863       MetadataTools.populatePixels(store, this); 
    864       for (int i=0; i<getSeriesCount(); i++) { 
    865         int index = getExternalSeries(i); 
    866         store.setImageName(externals[index].getFilePattern().getPattern(), i); 
     863      MetadataTools.populatePixels(store, this, false, false); 
     864      if (reader.getSeriesCount() == 1 && getSeriesCount() > 1) { 
     865        for (int i=0; i<getSeriesCount(); i++) { 
     866          int index = getExternalSeries(i); 
     867          store.setImageName(externals[index].getFilePattern().getPattern(), i); 
     868        } 
    867869      } 
    868870    } 
Note: See TracChangeset for help on using the changeset viewer.