Changeset 17141 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2020-10-10T11:48:49+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r16436 r17141 22 22 23 23 import org.openstreetmap.josm.command.AddCommand; 24 import org.openstreetmap.josm.command.Change Command;24 import org.openstreetmap.josm.command.ChangeNodesCommand; 25 25 import org.openstreetmap.josm.command.Command; 26 26 import org.openstreetmap.josm.data.coor.EastNorth; … … 231 231 232 232 for (int pos = 0; pos < ways.size(); pos++) { 233 if (!changedWays[pos]) { 234 continue; 235 } 236 237 Way way = ways.get(pos); 238 Way newWay = new Way(way); 239 newWay.setNodes(newNodes[pos]); 240 241 cmds.add(new ChangeCommand(dataset, way, newWay)); 233 if (changedWays[pos]) { 234 cmds.add(new ChangeNodesCommand(dataset, ways.get(pos), newNodes[pos])); 235 } 242 236 } 243 237
Note:
See TracChangeset
for help on using the changeset viewer.