Changeset 5364 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-07-25T16:00:25+02:00 (12 years ago)
Author:
akks
Message:

fix #7899 by Don-vip: exception hen hitting the "w" button when drawing a line.

File:
1 edited

Legend:

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

    r5260 r5364  
    587587        state = State.improving;
    588588
    589         List<OsmPrimitive> currentSelection = (List<OsmPrimitive>) getCurrentDataSet().getSelected();
     589        Collection<OsmPrimitive> currentSelection = getCurrentDataSet().getSelected();
    590590        if (currentSelection.size() != 1
    591                 || !currentSelection.get(0).equals(targetWay)) {
     591                || !currentSelection.iterator().next().equals(targetWay)) {
    592592            selectionChangedBlocked = true;
    593593            getCurrentDataSet().clearSelection();
Note: See TracChangeset for help on using the changeset viewer.