Ignore:
Timestamp:
2010-09-09T15:48:14+02:00 (14 years ago)
Author:
tilusnet
Message:

Fix for Ticket #5430 (http://josm.openstreetmap.de/ticket/5430).
In addition the selected to be aligned way segment's nodes are no longer registered as JOSM selected items.

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  
    1616import org.openstreetmap.josm.command.Command;
    1717import org.openstreetmap.josm.data.osm.Node;
    18 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    19 import org.openstreetmap.josm.data.osm.visitor.AllNodesVisitor;
    2018import org.openstreetmap.josm.tools.Shortcut;
    2119
     
    4745                        return;
    4846
    49                 Collection<OsmPrimitive> selection = getCurrentDataSet().getSelected();
    50                 Collection<Node> affectedNodes = AllNodesVisitor.getAllNodes(selection);
     47                Collection<Node> affectedNodes = AlignWaysSegmentMgr.getInstance(Main.map.mapView).getSelectedNodes();
    5148
    5249                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  
    8686                                        if (awSegs.algnUpdate(clickedPoint)) {
    8787                                                currentState.leftClick(this);
    88                                                 // Alignee changed, update selected nodes in the map
    89                                                 getCurrentDataSet().setSelected(
    90                                                                 awSegs.getSelectedNodes());
    9188                                        }
    9289
Note: See TracChangeset for help on using the changeset viewer.