Changeset 6027 in josm
- Timestamp:
- 2013-06-26T14:06:56+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r5979 r6027 428 428 Node n = null; 429 429 430 if (!ctrl) { 431 n = Main.map.mapView.getNearestNode(mousePos, OsmPrimitive.isSelectablePredicate); 430 n = Main.map.mapView.getNearestNode(mousePos, OsmPrimitive.isSelectablePredicate); 431 if (ctrl) { 432 Iterator<Way> it = getCurrentDataSet().getSelectedWays().iterator(); 433 if (it.hasNext()) { 434 // ctrl-click on node of selected way = reuse node despite of ctrl 435 if (!it.next().containsNode(n)) n = null; 436 } else { 437 n=null; // ctrl-click + no selected way = new node 438 } 432 439 } 433 440
Note:
See TracChangeset
for help on using the changeset viewer.