Changeset 12974 in josm


Ignore:
Timestamp:
2017-10-10T01:54:31+02:00 (10 days ago)
Author:
Don-vip
Message:

fix #14492 - do not try to merge deleted or incomplete nodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java

    r12846 r12974  
    7676        Collection<OsmPrimitive> selection = getLayerManager().getEditDataSet().getAllSelected();
    7777        List<Node> selectedNodes = OsmPrimitive.getFilteredList(selection, Node.class);
     78        selectedNodes.removeIf(n -> n.isDeleted() || n.isIncomplete());
    7879
    7980        if (selectedNodes.size() == 1) {
Note: See TracChangeset for help on using the changeset viewer.