Changeset 5364 in josm


Ignore:
Timestamp:
Jul 25, 2012 4:00:25 PM (11 months 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.