Ignore:
Timestamp:
2008-08-15T18:55:35+02:00 (16 years ago)
Author:
stoecker
Message:

close locale bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/DoubleConfigurer.java

    r5979 r9876  
    1919package org.openstreetmap.josm.plugins.lakewalker;
    2020
    21 import java.text.DecimalFormat;
    22 
    2321/**
    2422 * A Configurer for Double values
     
    2624public class DoubleConfigurer extends StringConfigurer {
    2725
    28   final static DecimalFormat df = new DecimalFormat("#0.0##########");
    29  
    3026  public DoubleConfigurer() {
    3127    super();
     
    3733
    3834  public DoubleConfigurer(String key, String name, Double val) {
    39     super(key, name, val == null ? null : df.format(val));
     35    super(key, name, val == null ? null : val.toString());
    4036  }
    4137
     
    5046    if (d != null) {
    5147      setValue(d);
    52     }
    53     if (!noUpdate && nameField != null) {
    54       nameField.setText(df.format(d));
     48      if (!noUpdate && nameField != null) {
     49        nameField.setText(d.toString());
     50      }
    5551    }
    5652  }
     
    5854  public String getValueString() {
    5955    if (value == null || value.equals("")) {
    60       return (String) value;
     56      return null;
    6157    }
    62     return df.format(value);
     58    return value.toString();
    6359  }
    6460}
Note: See TracChangeset for help on using the changeset viewer.