Ticket #715: josm-715-v2.diff
File josm-715-v2.diff, 1001 bytes (added by , 17 years ago) |
---|
-
home/dnaber/workspace/JOSM/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
416 416 if (currentBaseNode == null || currentBaseNode == currentMouseNode) { 417 417 return; // Don't create zero length way segments. 418 418 } 419 420 Main.map.mapView.repaint(); 421 419 422 420 // find out the distance, in metres, between the base point and the mouse cursor 423 421 LatLon mouseLatLon = Main.proj.eastNorth2latlon(currentMouseEastNorth); 424 422 distance = currentBaseNode.coor.greatCircleDistance(mouseLatLon); … … 431 429 Main.map.statusLine.setHeading(hdg); 432 430 Main.map.statusLine.setDist(distance); 433 431 updateStatusLine(); 432 433 if (!drawHelperLine) return; 434 435 Main.map.mapView.repaint(); 434 436 } 435 437 436 438 /**