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/waydownloader/src/org/openstreetmap/josm/plugins/waydownloader/WayDownloaderPlugin.java

    r34976 r35976  
    2222import org.openstreetmap.josm.data.DataSource;
    2323import org.openstreetmap.josm.data.UndoRedoHandler;
    24 import org.openstreetmap.josm.data.coor.LatLon;
     24import org.openstreetmap.josm.data.coor.ILatLon;
    2525import org.openstreetmap.josm.data.osm.DataSet;
    2626import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
     
    111111            DownloadOsmTask downloadTask = new DownloadOsmTask();
    112112            final PleaseWaitProgressMonitor monitor = new PleaseWaitProgressMonitor();
    113             LatLon ll = selectedNode.getCoor();
     113            ILatLon ll = selectedNode;
    114114            final Future<?> future = downloadTask.download(
    115115                    new DownloadParams(),
     
    308308        for (DataSource datasource : MainApplication.getLayerManager().getEditDataSet().getDataSources()) {
    309309            Bounds bounds = datasource.bounds;
    310             if (bounds != null && bounds.contains(node.getCoor())) return true;
     310            if (bounds != null && bounds.contains(node)) return true;
    311311        }
    312312        return false;
Note: See TracChangeset for help on using the changeset viewer.