Changeset 4039 in josm for trunk


Ignore:
Timestamp:
2011-04-19T16:24:12+02:00 (14 years ago)
Author:
stoecker
Message:

fix #6131 - NPE with Drag&Drop - patch by Zverikk

File:
1 edited

Legend:

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

    r3919 r4039  
    163163        }
    164164
     165        if( lastMousePos == null ) {
     166            lastMousePos = e.getPoint();
     167            return;
     168        }
     169
    165170        if (!initialMoveThresholdExceeded) {
    166171            int dxp = lastMousePos.x - e.getX();
Note: See TracChangeset for help on using the changeset viewer.