Ticket #18670: 18670.patch

File 18670.patch, 817 bytes (added by GerdP, 4 years ago)
  • src/org/openstreetmap/josm/actions/UnGlueAction.java

     
    465465            }
    466466            notifyWayPartOfRelation(parentWays);
    467467        } else {
     468            boolean firstLastNode = selectedWay.isFirstLastNode(selectedNode);
    468469            cmds.add(new ChangeCommand(selectedWay, modifyWay(selectedNode, selectedWay, cmds, newNodes)));
    469             notifyWayPartOfRelation(Collections.singleton(selectedWay));
     470            if (firstLastNode) {
     471                notifyWayPartOfRelation(Collections.singleton(selectedWay));
     472            }
    470473        }
    471474
    472475        if (dialog != null) {