Ignore:
Timestamp:
2022-06-14T20:11:21+02:00 (3 years ago)
Author:
taylor.smock
Message:

see #22104: Remove usages of Node#getCoor where possible

This also accounts for cases where Node has the methods used later,
so a new LatLon is unnecessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/src/org/openstreetmap/josm/plugins/pdfimport/FilePlacement18.java

    r35817 r35976  
    2727
    2828import org.openstreetmap.josm.data.coor.EastNorth;
    29 import org.openstreetmap.josm.data.coor.LatLon;
     29import org.openstreetmap.josm.data.coor.ILatLon;
    3030import org.openstreetmap.josm.data.osm.Node;
    3131import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    307307            }
    308308
    309             LatLon ll = ((Node) selected.iterator().next()).getCoor();
     309            ILatLon ll = ((Node) selected.iterator().next());
    310310            return new EastNorth(ll.lon() * 1000, ll.lat() * 1000);
    311311        }
Note: See TracChangeset for help on using the changeset viewer.