Ignore:
Timestamp:
2009-11-15T12:05:10+01:00 (15 years ago)
Author:
stoecker
Message:

fixed #3936 - regression - deleting last/first node of closed way handled wrong

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Way.java

    r2450 r2458  
    255255        i = copy.size();
    256256        if (closed && i > 2) {
    257             // TODO Should this be copy.addNode(firstNode)?
    258             addNode(firstNode());
     257            copy.add(copy.get(0));
    259258        } else if (i >= 2 && i <= 3 && copy.get(0) == copy.get(i-1)) {
    260259            copy.remove(i-1);
Note: See TracChangeset for help on using the changeset viewer.