Changeset 6162 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2013-08-20T18:29:49+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r6084 r6162 16 16 17 17 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.data.coor.LatLon;19 18 import org.openstreetmap.josm.data.osm.Node; 20 19 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 222 221 private static boolean isOutlying(OsmPrimitive osm, Area area) { 223 222 if (osm instanceof Node && !osm.isNewOrUndeleted()) { 224 LatLon coor = ((Node) osm).getCoor(); 225 return coor != null && !area.contains(coor); 223 return !((Node) osm).getCoor().isIn(area); 226 224 } else if (osm instanceof Way) { 227 225 for (Node n : ((Way) osm).getNodes()) { -
trunk/src/org/openstreetmap/josm/command/SequenceCommand.java
r6142 r6162 7 7 import java.util.Collection; 8 8 import java.util.HashSet; 9 import java.util.List;10 9 11 10 import javax.swing.Icon;
Note:
See TracChangeset
for help on using the changeset viewer.