Changeset 12735 in josm for trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
- Timestamp:
- 2017-09-05T17:58:01+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
r11878 r12735 20 20 import org.openstreetmap.gui.jmapviewer.MapMarkerDot; 21 21 import org.openstreetmap.gui.jmapviewer.tilesources.OsmTileSource; 22 import org.openstreetmap.josm.data.coor.CoordinateFormat;23 22 import org.openstreetmap.josm.data.coor.LatLon; 23 import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat; 24 24 import org.openstreetmap.josm.data.osm.history.HistoryNode; 25 25 import org.openstreetmap.josm.data.osm.history.HistoryOsmPrimitive; … … 308 308 309 309 // 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)")); 312 312 313 313 // update background color to reflect differences in the coordinates
Note:
See TracChangeset
for help on using the changeset viewer.