Changeset 5409 in josm


Ignore:
Timestamp:
2012-08-08T22:38:57+02:00 (7 years ago)
Author:
Don-vip
Message:

see #7934 - forgot this file in previous commit due to a method signature change in Way (no plugin seems to be impacted)

File:
1 edited

Legend:

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

    r5266 r5409  
    343343
    344344        Collection<Relation> relationsToDelete = Utils.filteredCollection(primitivesToDelete, Relation.class);
    345         if(!relationsToDelete.isEmpty() && !silent && !confirmRelationDeletion(relationsToDelete))
     345        if (!relationsToDelete.isEmpty() && !silent && !confirmRelationDeletion(relationsToDelete))
    346346            return null;
    347347
     
    364364        for (Way w : waysToBeChanged) {
    365365            Way wnew = new Way(w);
    366             wnew.removeNodes(primitivesToDelete);
     366            wnew.removeNodes(OsmPrimitive.getFilteredSet(primitivesToDelete, Node.class));
    367367            if (wnew.getNodesCount() < 2) {
    368368                primitivesToDelete.add(w);
Note: See TracChangeset for help on using the changeset viewer.