- Timestamp:
- 2013-03-08T19:35:50+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r5741 r5764 1010 1010 // fall through to default action. 1011 1011 // (for semi-parallel lines, intersection might be miles away!) 1012 if (Main.map.mapView.getPoint(n).distance(Main.map.mapView.getPoint(intersection)) < snapToIntersectionThreshold) { 1012 if (Main.map.mapView.getPoint2D(n).distance(Main.map.mapView.getPoint2D(intersection)) < snapToIntersectionThreshold) { 1013 1013 n.setEastNorth(intersection); 1014 1014 return; -
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r5500 r5764 309 309 // nodes 310 310 for (Node n : nc.getCurrentDataSet().getNodes()) { 311 if (n.isSelectable() && lasso.contains(nc.getPoint(n))) { 311 if (n.isSelectable() && lasso.contains(nc.getPoint2D(n))) { 312 312 selection.add(n); 313 313 } … … 321 321 if (alt) { 322 322 for (Node n : w.getNodes()) { 323 if (!n.isIncomplete() && lasso.contains(nc.getPoint(n))) { 323 if (!n.isIncomplete() && lasso.contains(nc.getPoint2D(n))) { 324 324 selection.add(w); 325 325 break;
Note:
See TracChangeset
for help on using the changeset viewer.