Changeset 4643 in josm for trunk


Ignore:
Timestamp:
2011-12-08T20:56:09+01:00 (13 years ago)
Author:
Don-vip
Message:

fix #7118 - Deleting a way in Draw mode leads to ArrayIndexOutOfBoundsException

File:
1 edited

Legend:

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

    r4611 r4643  
    700700        } else if (selectedWay == null) {
    701701            currentBaseNode = selectedNode;
    702         } else {
     702        } else if (!selectedWay.isDeleted()) { // fix #7118
    703703            if (selectedNode == selectedWay.getNode(0) || selectedNode == selectedWay.getNode(selectedWay.getNodesCount()-1)) {
    704704                currentBaseNode = selectedNode;
Note: See TracChangeset for help on using the changeset viewer.