Changeset 33730 in osm for applications/editors/josm/plugins/FastDraw
- Timestamp:
- 2017-10-25T20:40:35+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingMode.java
r33583 r33730 386 386 // free mouse-drawing 387 387 if (nearSomeNode) { 388 if (settings.snapNodes && Math.hypot(e.getX() - lastP.x, e.getY() - lastP.y) > 1e-2) {388 if (settings.snapNodes && lastP != null && Math.hypot(e.getX() - lastP.x, e.getY() - lastP.y) > 1e-2) { 389 389 line.addFixed(nd1.getCoor()); // snap to node coords 390 390 repaint(); … … 392 392 } 393 393 } else { 394 if ( Math.hypot(e.getX() - lastP.x, e.getY() - lastP.y) > settings.minPixelsBetweenPoints) {394 if (lastP != null && Math.hypot(e.getX() - lastP.x, e.getY() - lastP.y) > settings.minPixelsBetweenPoints) { 395 395 line.addLast(getLatLon(e)); // add new point 396 396 repaint();
Note:
See TracChangeset
for help on using the changeset viewer.