Ignore:
Timestamp:
2016-09-03T22:29:48+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13491 - fix EDT violation (patch by Gerd Petermann, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java

    r10924 r10948  
    2121import org.openstreetmap.josm.actions.MergeNodesAction;
    2222import org.openstreetmap.josm.command.Command;
    23 import org.openstreetmap.josm.command.DeleteCommand;
    2423import org.openstreetmap.josm.data.coor.LatLon;
    2524import org.openstreetmap.josm.data.osm.Hash;
     
    408407            }
    409408
    410             if (DeleteCommand.checkAndConfirmOutlyingDelete(nodes, Collections.singleton(target)))
     409            if (Command.checkOutlyingOrIncompleteOperation("delete", nodes, Collections.singleton(target)) == Command.IS_OK)
    411410                return MergeNodesAction.mergeNodes(Main.getLayerManager().getEditLayer(), nodes, target);
    412411        }
Note: See TracChangeset for help on using the changeset viewer.