Changeset 5824 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2013-04-03T22:34:42+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r5759 r5824 16 16 17 17 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.data.coor.LatLon; 18 19 import org.openstreetmap.josm.data.osm.Node; 19 20 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 217 218 218 219 private static boolean isOutlying(OsmPrimitive osm, Area area) { 219 if (osm instanceof Node) { 220 return !osm.isNewOrUndeleted() && !area.contains(((Node) osm).getCoor()); 220 if (osm instanceof Node && !osm.isNewOrUndeleted()) { 221 LatLon coor = ((Node) osm).getCoor(); 222 return coor != null && !area.contains(coor); 221 223 } else if (osm instanceof Way) { 222 224 for (Node n : ((Way) osm).getNodes()) {
Note:
See TracChangeset
for help on using the changeset viewer.