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

see #22104 - fix deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/src/livegps/LiveGpsLayer.java

    r35221 r35975  
    1313import java.util.Map;
    1414
     15import org.openstreetmap.josm.data.coor.ILatLon;
    1516import org.openstreetmap.josm.data.coor.LatLon;
    1617import org.openstreetmap.josm.data.gpx.GpxData;
     
    6465    void setCurrentPosition(double lat, double lon) {
    6566        LatLon thisPos = new LatLon(lat, lon);
    66         if ((lastPos != null) && (thisPos.equalsEpsilon(lastPos)))
     67        if (lastPos != null && thisPos.equalsEpsilon(lastPos, ILatLon.MAX_SERVER_PRECISION))
    6768            // no change in position
    6869            // maybe show a "paused" cursor or some such
Note: See TracChangeset for help on using the changeset viewer.