Changeset 17914 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2021-05-27T19:41:24+02:00 (3 years ago)
Author:
simon04
Message:

fix #20933 - NumberFormatException: For input string: "333,662" (patch by taylor.smock, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/vectortile/mapbox/Feature.java

    r17867 r17914  
    66import java.util.ArrayList;
    77import java.util.List;
     8import java.util.Locale;
    89
    910import org.openstreetmap.josm.data.osm.TagMap;
     
    111112            if (value instanceof Double || value instanceof Float) {
    112113                // reset grouping if the instance is a singleton
    113                 final NumberFormat numberFormat = NumberFormat.getNumberInstance();
     114                final NumberFormat numberFormat = NumberFormat.getNumberInstance(Locale.ROOT);
    114115                final boolean grouping = numberFormat.isGroupingUsed();
    115116                try {
Note: See TracChangeset for help on using the changeset viewer.