Changeset 642 in josm for trunk/src


Ignore:
Timestamp:
2008-05-19T02:12:13+02:00 (16 years ago)
Author:
framm
Message:
  • small drawing performance speedup by Daniel Naber <list2006@…>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r627 r642  
    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);
     
    432430                Main.map.statusLine.setDist(distance);
    433431                updateStatusLine();
     432
     433                if (!drawHelperLine) return;
     434
     435                Main.map.mapView.repaint();
    434436        }
    435437       
Note: See TracChangeset for help on using the changeset viewer.