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


Ignore:
Timestamp:
2021-03-24T23:04:25+01:00 (4 years ago)
Author:
simon04
Message:

see #20233 - SessionWriterTest.testWriteGpxAndMarkerJoz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java

    r16913 r17658  
    1212import java.util.HashMap;
    1313import java.util.List;
     14import java.util.Locale;
    1415import java.util.Map;
    1516import java.util.Objects;
     
    271272        viewportEl.appendChild(scale);
    272273        double dist100px = mapView.getDist100Pixel();
    273         scale.setAttribute("meter-per-pixel", Double.toString(dist100px / 100));
     274        scale.setAttribute("meter-per-pixel", String.format(Locale.ROOT, "%6f", dist100px / 100));
    274275    }
    275276
Note: See TracChangeset for help on using the changeset viewer.