Changeset 618 in josm


Ignore:
Timestamp:
Apr 21, 2008 5:18:58 PM (5 years ago)
Author:
gebner
Message:

Remove annoying exception in DrawAction when activating the draw action for
the first time.

File:
1 edited

Legend:

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

    r616 r618  
    349349         */ 
    350350        private void computeHelperLine() { 
     351                if (mousePos == null) { 
     352                        // Don't draw the line. 
     353                        currentMouseEastNorth = null; 
     354                        currentBaseNode = null; 
     355                        return; 
     356                } 
    351357                 
    352358                double distance = -1; 
Note: See TracChangeset for help on using the changeset viewer.