Changeset 25859 in osm for applications/editors


Ignore:
Timestamp:
2011-04-16T21:01:03+02:00 (14 years ago)
Author:
zverik
Message:

nasty bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/dumbutils/src/dumbutils/ReplaceGeometryAction.java

    r25857 r25859  
    6262        Area a = getCurrentDataSet().getDataSourceArea();
    6363        for( Node node : way.getNodes() ) {
    64             if( !node.isDeleted() && node.isReferredByWays(1) && (node.isNewOrUndeleted() || a.contains(node.getCoor())) )
     64            List<OsmPrimitive> referrers = node.getReferrers();
     65            if( !node.isDeleted() && referrers.size() == 1 && referrers.get(0).equals(way)
     66                    && (node.isNewOrUndeleted() || a.contains(node.getCoor())) )
    6567                nodesToDelete.add(node);
    6668        }
Note: See TracChangeset for help on using the changeset viewer.