Changeset 26218 in osm


Ignore:
Timestamp:
2011-06-30T13:33:52+02:00 (14 years ago)
Author:
glebius
Message:

Silent deprecation warning.

File:
1 edited

Legend:

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

    r19680 r26218  
    1010import org.openstreetmap.josm.Main;
    1111import org.openstreetmap.josm.data.coor.LatLon;
     12import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1213import org.openstreetmap.josm.data.osm.Way;
    1314
     
    164165        if(way == null && Main.map != null && Main.map.mapView != null) {
    165166            Point xy = Main.map.mapView.getPoint(getLatLon());
    166             way = Main.map.mapView.getNearestWay(xy);
     167            way = Main.map.mapView.getNearestWay(xy,
     168                OsmPrimitive.isUsablePredicate);
    167169        }
    168170        return way;
Note: See TracChangeset for help on using the changeset viewer.