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

see #22104 - fix deprecation warnings

Location:
applications/editors/josm/plugins/tracer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tracer/build.xml

    r34563 r35975  
    44    <property name="commit.message" value="Tracer plugin can load at runtime"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="14153"/>
     6    <property name="plugin.main.version" value="18464"/>
    77    <property name="plugin.canloadatruntime" value="true"/>
    88
  • applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java

    r33813 r35975  
    1919import org.openstreetmap.josm.command.MoveCommand;
    2020import org.openstreetmap.josm.command.SequenceCommand;
     21import org.openstreetmap.josm.data.coor.ILatLon;
    2122import org.openstreetmap.josm.data.coor.LatLon;
    2223import org.openstreetmap.josm.data.osm.BBox;
     
    207208                double angle = TracerGeometry.angleOfLines(n1, nn, nn, n2);
    208209                System.out.println("Angle: " + angle + " distance: " + dist + " Node: " + nod);
    209                 if (!n1.equalsEpsilon(nn) && !n2.equalsEpsilon(nn) && dist < minDistanceSq){ // && Math.abs(angle) < maxAngle) {
     210                if (!n1.equalsEpsilon(nn, ILatLon.MAX_SERVER_PRECISION)
     211                 && !n2.equalsEpsilon(nn, ILatLon.MAX_SERVER_PRECISION) && dist < minDistanceSq) { // && Math.abs(angle) < maxAngle) {
    210212                    //maxAngle = angle;
    211213                    nearestNode = nod;
Note: See TracChangeset for help on using the changeset viewer.