Changeset 23082 in osm for applications/editors/josm/plugins/alignways/src/org
- Timestamp:
- 2010-09-09T15:48:14+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/alignways/src/org/openstreetmap/josm/plugins/alignways
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/alignways/src/org/openstreetmap/josm/plugins/alignways/AlignWaysAction.java
r22842 r23082 16 16 import org.openstreetmap.josm.command.Command; 17 17 import org.openstreetmap.josm.data.osm.Node; 18 import org.openstreetmap.josm.data.osm.OsmPrimitive;19 import org.openstreetmap.josm.data.osm.visitor.AllNodesVisitor;20 18 import org.openstreetmap.josm.tools.Shortcut; 21 19 … … 47 45 return; 48 46 49 Collection<OsmPrimitive> selection = getCurrentDataSet().getSelected(); 50 Collection<Node> affectedNodes = AllNodesVisitor.getAllNodes(selection); 47 Collection<Node> affectedNodes = AlignWaysSegmentMgr.getInstance(Main.map.mapView).getSelectedNodes(); 51 48 52 49 Command c = !Main.main.undoRedo.commands.isEmpty() ? Main.main.undoRedo.commands -
applications/editors/josm/plugins/alignways/src/org/openstreetmap/josm/plugins/alignways/AlignWaysMode.java
r22842 r23082 86 86 if (awSegs.algnUpdate(clickedPoint)) { 87 87 currentState.leftClick(this); 88 // Alignee changed, update selected nodes in the map89 getCurrentDataSet().setSelected(90 awSegs.getSelectedNodes());91 88 } 92 89
Note:
See TracChangeset
for help on using the changeset viewer.