Changeset 353 in josm
- Timestamp:
- 2007-10-09T12:16:40+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java
r351 r353 181 181 * which we insert the node. 182 182 */ 183 Way newInsertInto = null;183 Way wayInsertedInto = null; 184 184 if (insertInto != null) 185 newInsertInto = splitWaySegmentAtNode(insertInto, n, cmds);185 wayInsertedInto = splitWaySegmentAtNode(insertInto, n, cmds); 186 186 187 187 Way way = getWayForNode(n1); … … 191 191 cmds.add(new AddCommand(way)); 192 192 } else { 193 if (insertInto != null) { 194 if (way == insertInto.way) { 195 way = newInsertInto; 196 } 193 if (insertInto != null && way == insertInto.way) { 194 way = wayInsertedInto; 197 195 } else { 198 196 Way wnew = new Way(way);
Note:
See TracChangeset
for help on using the changeset viewer.