Ticket #6131: select-drag-npe.patch
File select-drag-npe.patch, 638 bytes (added by , 13 years ago) |
---|
-
openstreetmap/josm/actions/mapmode/SelectAction.java
162 162 startingDraggingPos = new Point(e.getX(), e.getY()); 163 163 } 164 164 165 if( lastMousePos == null ) { 166 lastMousePos = e.getPoint(); 167 return; 168 } 169 165 170 if (!initialMoveThresholdExceeded) { 166 171 int dxp = lastMousePos.x - e.getX(); 167 172 int dyp = lastMousePos.y - e.getY();