Ignore:
Timestamp:
2010-02-18T21:31:04+01:00 (10 years ago)
Author:
bastiK
Message:

fixed #4566 - seperator and decimal-point in download dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r2990 r3018  
    11// License: GPL. Copyright 2007 by Immanuel Scholz and others
    22package org.openstreetmap.josm.data.coor;
     3
     4import static org.openstreetmap.josm.tools.I18n.trc;
    35
    46import static java.lang.Math.PI;
     
    810import static java.lang.Math.sqrt;
    911import static java.lang.Math.toRadians;
    10 import static org.openstreetmap.josm.tools.I18n.trc;
    1112
    1213import java.text.DecimalFormat;
    1314import java.text.NumberFormat;
     15import java.util.Locale;
    1416
    1517import org.openstreetmap.josm.Main;
     
    3335    private static DecimalFormat cDmsMinuteFormatter = new DecimalFormat("00");
    3436    private static DecimalFormat cDmsSecondFormatter = new DecimalFormat("00.0");
    35     private static DecimalFormat cDdFormatter = new DecimalFormat("###0.00000");
     37    private static DecimalFormat cDdFormatter;
     38    static {
     39        // Don't use the localized decimal separator. This way we can present
     40        // a comma separated list of coordinates.
     41        cDdFormatter = (DecimalFormat) NumberFormat.getInstance(Locale.UK);
     42        cDdFormatter.applyPattern("###0.00000");
     43    }
    3644
    3745    /**
Note: See TracChangeset for help on using the changeset viewer.