Ignore:
Timestamp:
2022-06-13T19:51:10+02:00 (3 years ago)
Author:
Don-vip
Message:

see #22104 - fix deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/terracer/src/org/openstreetmap/josm/plugins/terracer/TerracerAction.java

    r35579 r35975  
    3232import org.openstreetmap.josm.command.SequenceCommand;
    3333import org.openstreetmap.josm.data.UndoRedoHandler;
     34import org.openstreetmap.josm.data.coor.ILatLon;
     35import org.openstreetmap.josm.data.coor.LatLon;
    3436import org.openstreetmap.josm.data.osm.DataSet;
    3537import org.openstreetmap.josm.data.osm.Node;
     
    217219            // Don't open the dialog
    218220            try {
    219                 terraceBuilding(outline, init, street, associatedStreet, 0, null, null, 0, 
     221                terraceBuilding(outline, init, street, associatedStreet, 0, null, null, 0,
    220222                        housenumbers, streetname, associatedStreet != null, false, "yes");
    221223            } catch (UserCancelException ex) {
     
    778780    private Node interpolateNode(Node a, Node b, double f) {
    779781        Node n = new Node(a.getEastNorth().interpolate(b.getEastNorth(), f));
    780         if (n.getCoor().equalsEpsilon(a.getCoor()))
     782        LatLon latLon = n.getCoor();
     783                if (latLon.equalsEpsilon(a.getCoor(), ILatLon.MAX_SERVER_PRECISION))
    781784            return a;
    782         if (n.getCoor().equalsEpsilon(b.getCoor()))
     785        if (latLon.equalsEpsilon(b.getCoor(), ILatLon.MAX_SERVER_PRECISION))
    783786            return b;
    784787        return n;
Note: See TracChangeset for help on using the changeset viewer.