Ticket #2140: FixRelationHandling.patch

File FixRelationHandling.patch, 952 bytes (added by xeen, 16 years ago)

Easy fix – removes relations from selection when dealing with moving/rotating

  • src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

     
    186186            virtualWay = null;
    187187            virtualNode = null;
    188188        } else {
    189             Collection<OsmPrimitive> selection = Main.ds.getSelected();
     189            // Currently we support moving and rotating, which do not affect relations.
     190            // So don't add them in the first place to make handling easier
     191            Collection<OsmPrimitive> selection = Main.ds.getSelectedWays();
     192            selection.addAll(Main.ds.getSelectedNodes());
    190193            Collection<Node> affectedNodes = AllNodesVisitor.getAllNodes(selection);
    191194
    192195            // when rotating, having only one node makes no sense - quit silently