Changeset 7246 for branches/4.2


Ignore:
Timestamp:
11/24/10 16:04:08 (10 years ago)
Author:
melissa
Message:

Fixed channel name population.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/ImprovisionTiffReader.java

    r7235 r7246  
    202202      Arrays.fill(coords[i], -1); 
    203203      comment = ifds.get(i).getComment(); 
     204      // TODO : can use loci.common.IniParser to parse the comments 
    204205      comment = comment.replaceAll("\r\n", "\n"); 
    205206      comment = comment.replaceAll("\r", "\n"); 
     
    218219        else if (key.equals("ChannelNo")) { 
    219220          coords[i][1] = Integer.parseInt(value); 
     221          int ndx = Integer.parseInt(value) - 1; 
     222          if (cNames[ndx] == null) cNames[ndx] = channelName; 
    220223        } 
    221224        else if (key.equals("TimepointName")) { 
     
    224227        else if (key.equals("ChannelName")) { 
    225228          channelName = value; 
    226         } 
    227         else if (key.equals("ChannelNo")) { 
    228           int ndx = Integer.parseInt(value); 
    229           if (cNames[ndx] == null) cNames[ndx] = channelName; 
    230229        } 
    231230        else if (key.equals("MultiFileTIFF")) { 
Note: See TracChangeset for help on using the changeset viewer.