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


Ignore:
Timestamp:
2010-03-11T10:13:23+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #4705: Exception when drawing a closed way

File:
1 edited

Legend:

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

    r3102 r3108  
    322322
    323323        DataSet ds = getCurrentDataSet();
    324         Collection<OsmPrimitive> selection = ds.getSelected();
     324        Collection<OsmPrimitive> selection = new ArrayList<OsmPrimitive>(ds.getSelected());
    325325        Collection<Command> cmds = new LinkedList<Command>();
    326326        Collection<OsmPrimitive> newSelection = new LinkedList<OsmPrimitive>(ds.getSelected());
Note: See TracChangeset for help on using the changeset viewer.