Changeset 6787


Ignore:
Timestamp:
08/11/10 16:30:06 (9 years ago)
Author:
melissa
Message:

Added extra sanity check when parsing doubles.

File:
1 edited

Legend:

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

    r6655 r6787  
    13381338      char usedSeparator = separator == '.' ? ',' : '.'; 
    13391339      value = value.replace(usedSeparator, separator); 
     1340      try { 
     1341        Double.parseDouble(value); 
     1342      } 
     1343      catch (Exception e) { 
     1344        value = value.replace(separator, usedSeparator); 
     1345      } 
    13401346    } 
    13411347    return value; 
Note: See TracChangeset for help on using the changeset viewer.