Ticket #20289: 20289.patch

File 20289.patch, 1.3 KB (added by GerdP, 3 years ago)
  • src/org/openstreetmap/josm/actions/UnGlueAction.java

     
    312312
    313313    private static Node cloneNode(Node originalNode, List<Command> cmds) {
    314314        Node newNode = new Node(originalNode, true /* clear OSM ID */);
     315        if (!newNode.isTagged() && newNode.hasKeys())
     316            newNode.removeAll(); // see #20289
    315317        cmds.add(new AddCommand(originalNode.getDataSet(), newNode));
    316318        return newNode;
    317319    }
  • src/org/openstreetmap/josm/gui/dialogs/PropertiesMembershipChoiceDialog.java

     
    142142    }
    143143
    144144    private static boolean isTagged(final Collection<Node> existingNodes) {
    145         return existingNodes.stream().anyMatch(Node::hasKeys);
     145        return existingNodes.stream().anyMatch(Node::isTagged);
    146146    }
    147147
    148148    private static boolean isUsedInRelations(final Collection<Node> existingNodes) {