Changeset 12425 in josm for trunk/src/org
- Timestamp:
- 2017-06-22T22:10:26+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r12330 r12425 786 786 */ 787 787 private void tryToSetBaseSegmentForAngleSnap() { 788 WaySegment seg = Main.map.mapView.getNearestWaySegment(mousePos, OsmPrimitive::isSelectable); 789 if (seg != null) { 790 snapHelper.setBaseSegment(seg); 788 if (mousePos != null) { 789 WaySegment seg = Main.map.mapView.getNearestWaySegment(mousePos, OsmPrimitive::isSelectable); 790 if (seg != null) { 791 snapHelper.setBaseSegment(seg); 792 } 791 793 } 792 794 }
Note:
See TracChangeset
for help on using the changeset viewer.