Changeset 618 in josm for trunk


Ignore:
Timestamp:
2008-04-21T17:18:58+02:00 (17 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.