- Timestamp:
- 2016-09-07T00:00:53+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r10948 r10970 253 253 * Check whether user is about to operate on data outside of the download area. 254 254 * 255 * @param operation the operation name which is used for setting some preferences256 255 * @param primitives the primitives to operate on 257 256 * @param ignore {@code null} or a primitive to be ignored 258 257 * @return true, if operating on outlying primitives is OK; false, otherwise 259 258 */ 260 public static int checkOutlyingOrIncompleteOperation( String operation,259 public static int checkOutlyingOrIncompleteOperation( 261 260 Collection<? extends OsmPrimitive> primitives, 262 261 Collection<? extends OsmPrimitive> ignore) { … … 289 288 Collection<? extends OsmPrimitive> primitives, 290 289 Collection<? extends OsmPrimitive> ignore) { 291 int checkRes = checkOutlyingOrIncompleteOperation( operation,primitives, ignore);290 int checkRes = checkOutlyingOrIncompleteOperation(primitives, ignore); 292 291 if ((checkRes & IS_OUTSIDE) != 0) { 293 292 JPanel msg = new JPanel(new GridBagLayout()); -
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r10948 r10970 407 407 } 408 408 409 if (Command.checkOutlyingOrIncompleteOperation( "delete",nodes, Collections.singleton(target)) == Command.IS_OK)409 if (Command.checkOutlyingOrIncompleteOperation(nodes, Collections.singleton(target)) == Command.IS_OK) 410 410 return MergeNodesAction.mergeNodes(Main.getLayerManager().getEditLayer(), nodes, target); 411 411 }
Note:
See TracChangeset
for help on using the changeset viewer.