Ignore:
Timestamp:
2017-09-05T17:58:01+02:00 (21 months ago)
Author:
bastiK
Message:

see #15229 - move CoordinateFormat code out of LatLon class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java

    r11878 r12735  
    2020import org.openstreetmap.gui.jmapviewer.MapMarkerDot;
    2121import org.openstreetmap.gui.jmapviewer.tilesources.OsmTileSource;
    22 import org.openstreetmap.josm.data.coor.CoordinateFormat;
    2322import org.openstreetmap.josm.data.coor.LatLon;
     23import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat;
    2424import org.openstreetmap.josm.data.osm.history.HistoryNode;
    2525import org.openstreetmap.josm.data.osm.history.HistoryOsmPrimitive;
     
    308308
    309309            // display the coordinates
    310             lblLat.setText(coord != null ? coord.latToString(CoordinateFormat.DECIMAL_DEGREES) : tr("(none)"));
    311             lblLon.setText(coord != null ? coord.lonToString(CoordinateFormat.DECIMAL_DEGREES) : tr("(none)"));
     310            lblLat.setText(coord != null ? DecimalDegreesCoordinateFormat.INSTANCE.latToString(coord) : tr("(none)"));
     311            lblLon.setText(coord != null ? DecimalDegreesCoordinateFormat.INSTANCE.lonToString(coord) : tr("(none)"));
    312312
    313313            // update background color to reflect differences in the coordinates
Note: See TracChangeset for help on using the changeset viewer.