Changeset 1398 in josm for trunk/src


Ignore:
Timestamp:
2009-02-14T12:32:08+01:00 (16 years ago)
Author:
stoecker
Message:

fixed #2140. modified patch by xeen.

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r1379 r1398  
    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.getSelectedPhysical();
    190192            Collection<Node> affectedNodes = AllNodesVisitor.getAllNodes(selection);
    191193
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r1180 r1398  
    105105    }
    106106
     107    public Collection<OsmPrimitive> getSelectedPhysical() {
     108        Collection<OsmPrimitive> sel = getSelected(nodes);
     109        sel.addAll(getSelected(ways));
     110        return sel;
     111    }
    107112    /**
    108113     * Return a list of all selected objects. Even keys are returned.
Note: See TracChangeset for help on using the changeset viewer.