Ticket #715: josm-715-v2.diff

File josm-715-v2.diff, 1001 bytes (added by dnaber, 17 years ago)

new version, doesn't break status information anymore

  • home/dnaber/workspace/JOSM/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

     
    416416                if (currentBaseNode == null || currentBaseNode == currentMouseNode) {
    417417                        return; // Don't create zero length way segments.
    418418                }
    419                
    420                 Main.map.mapView.repaint();
    421                
     419
    422420                // find out the distance, in metres, between the base point and the mouse cursor
    423421                LatLon mouseLatLon = Main.proj.eastNorth2latlon(currentMouseEastNorth);
    424422                distance = currentBaseNode.coor.greatCircleDistance(mouseLatLon);
     
    431429                Main.map.statusLine.setHeading(hdg);
    432430                Main.map.statusLine.setDist(distance);
    433431                updateStatusLine();
     432
     433                if (!drawHelperLine) return;
     434
     435                Main.map.mapView.repaint();
    434436        }
    435437       
    436438        /**