Changeset 13561 in osm for applications/editors/josm/plugins/terracer/src
- Timestamp:
- 2009-02-06T13:26:41+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/terracer/src/terracer/TerracerAction.java
r13559 r13561 142 142 for (int i = 0; i < nb; ++i) { 143 143 Way terr = new Way(); 144 terr.addNode(new_nodes[0][i]); 145 terr.addNode(new_nodes[0][i+1]); 146 terr.addNode(new_nodes[1][i+1]); 147 terr.addNode(new_nodes[1][i]); 148 terr.addNode(new_nodes[0][i]); 144 // Using Way.nodes.add rather than Way.addNode because the latter doesn't 145 // exist in older versions of JOSM. 146 terr.nodes.add(new_nodes[0][i]); 147 terr.nodes.add(new_nodes[0][i+1]); 148 terr.nodes.add(new_nodes[1][i+1]); 149 terr.nodes.add(new_nodes[1][i]); 150 terr.nodes.add(new_nodes[0][i]); 149 151 ways.add(terr); 150 152 commands.add(new AddCommand(terr));
Note:
See TracChangeset
for help on using the changeset viewer.