Changeset 3089 in josm for trunk


Ignore:
Timestamp:
2010-03-05T22:31:16+01:00 (10 years ago)
Author:
mjulius
Message:

In PurgePrimitivesCommand remove all instances of a node to be purged from parent ways

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/PurgePrimitivesCommand.java

    r3083 r3089  
    88import java.util.Collections;
    99import java.util.HashSet;
    10 import java.util.List;
    1110import java.util.Set;
    1211import java.util.logging.Logger;
     
    146145                    origVersionsOfTouchedPrimitives.add(w);
    147146                }
    148                 List<Node> wayNodes = w.getNodes();
    149                 wayNodes.remove(child);
    150                 w.setNodes(wayNodes);
     147                w.removeNode((Node)child);
    151148                // if a way ends up with less than two nodes we
    152149                // remember it on the "hive"
Note: See TracChangeset for help on using the changeset viewer.