Changeset 35608 in osm for applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap
- Timestamp:
- 2020-10-22T17:56:17+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/curves/CircleArcMaker.java
r35476 r35608 16 16 17 17 import org.openstreetmap.josm.command.AddCommand; 18 import org.openstreetmap.josm.command.ChangeCommand; 18 import org.openstreetmap.josm.command.ChangeNodesCommand; 19 19 import org.openstreetmap.josm.command.Command; 20 20 import org.openstreetmap.josm.command.MoveCommand; … … 177 177 Set<Way> targetWays = new HashSet<>(); 178 178 if (!selectedWays.isEmpty()) { 179 orig.forEach(n -> targetWays.addAll(n.getParentWays())); 179 for (int i = pos1 + 1; i < pos3; i++) { 180 targetWays.addAll(nodes.get(i).getParentWays()); 181 } 180 182 } else { 181 183 targetWays.add(w); … … 366 368 } 367 369 if (twWasChanged) { 368 cmds.add(new ChangeCommand(ds, originalTw, tw)); 369 } 370 cmds.add(new ChangeNodesCommand(ds, originalTw, new ArrayList<>(tw.getNodes()))); 371 } 372 tw.setNodes(null); // see #19885 370 373 } 371 374 }
Note:
See TracChangeset
for help on using the changeset viewer.