Changeset 3035


Ignore:
Timestamp:
08/02/07 12:44:20 (13 years ago)
Author:
melissa
Message:

Remove garbage data from channel name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/ZeissLSMReader.java

    r3023 r3035  
    420420          char current = (char) in.read(); 
    421421          while (current != 0) { 
    422             sb.append(current); 
     422            if (current < 128) sb.append(current); 
    423423            current = (char) in.read(); 
    424424          } 
    425           put("ChannelName" + i, sb.toString()); 
     425          if (sb.length() <= 128) put("ChannelName" + i, sb.toString()); 
     426          else put("ChannelName" + i, "");  
    426427        } 
    427428      } 
Note: See TracChangeset for help on using the changeset viewer.