Changeset 1905


Ignore:
Timestamp:
12/06/06 17:07:39 (13 years ago)
Author:
chris
Message:

I don't know why it's telling me there's changes to BaseTiffReader,
but here goes anyhow.

FilePattern:
1) fixed minor bug with suffix... instead of returning:

return pattern.substring(endIndex.length > 0 ? endIndex[0] : 0);

I fixed it to:

return pattern.substring(

endIndex.length > 0 ? endIndex[endIndex.length - 1] : 0);

-> accounts for the repetition of blocks in the filename of OptionsWindow
in the LociDataBrowser


Location:
trunk/loci/formats
Files:
2 edited

Legend:

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

    r1806 r1905  
    262262  /** Gets the pattern's text string after all numerical ranges. */ 
    263263  public String getSuffix() { 
    264     return pattern.substring(endIndex.length > 0 ? endIndex[0] : 0); 
     264    return pattern.substring(endIndex.length > 0 ? endIndex[endIndex.length - 1] : 0); 
    265265  } 
    266266 
  • trunk/loci/formats/in/BaseTiffReader.java

    r1868 r1905  
    705705    throws FormatException, IOException 
    706706  { 
     707    if (true) return null;//TEMP 
    707708    if (!id.equals(currentId)) initFile(id); 
    708709    if (channelMinMax == null || channelMinMax[theC] == null) 
Note: See TracChangeset for help on using the changeset viewer.