Ignore:
Timestamp:
2017-09-05T17:58:01+02:00 (7 years 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/download/BoundingBoxSelection.java

    r11620 r12735  
    2525
    2626import org.openstreetmap.josm.data.Bounds;
    27 import org.openstreetmap.josm.data.coor.CoordinateFormat;
    2827import org.openstreetmap.josm.data.coor.LatLon;
     28import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat;
    2929import org.openstreetmap.josm.gui.widgets.JosmTextArea;
    3030import org.openstreetmap.josm.gui.widgets.JosmTextField;
     
    163163    private void updateBboxFields(Bounds area) {
    164164        if (area == null) return;
    165         latlon[0].setText(area.getMin().latToString(CoordinateFormat.DECIMAL_DEGREES));
    166         latlon[1].setText(area.getMin().lonToString(CoordinateFormat.DECIMAL_DEGREES));
    167         latlon[2].setText(area.getMax().latToString(CoordinateFormat.DECIMAL_DEGREES));
    168         latlon[3].setText(area.getMax().lonToString(CoordinateFormat.DECIMAL_DEGREES));
     165        latlon[0].setText(DecimalDegreesCoordinateFormat.INSTANCE.latToString(area.getMin()));
     166        latlon[1].setText(DecimalDegreesCoordinateFormat.INSTANCE.lonToString(area.getMin()));
     167        latlon[2].setText(DecimalDegreesCoordinateFormat.INSTANCE.latToString(area.getMax()));
     168        latlon[3].setText(DecimalDegreesCoordinateFormat.INSTANCE.lonToString(area.getMax()));
    169169        for (JosmTextField tf: latlon) {
    170170            resetErrorMessage(tf);
Note: See TracChangeset for help on using the changeset viewer.