Changeset 19985 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-02-13T10:11:36+01:00 (14 years ago)
Author:
petrdlouhy
Message:

fix of twisted connecting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java

    r19927 r19985  
    143143                continue;
    144144            }
     145
     146            if(m.get(ww) != null){
     147                ww = m.get(ww);
     148            }
     149
    145150            for (Pair<Node, Node> np : ww.getNodePairs(false)) {
    146151                double dist = TracerGeometry.distanceFromSegment(ll, np.a.getCoor(), np.b.getCoor());
     
    155160        if (minDist < MIN_DISTANCE_TW) {
    156161            Way newNWay = new Way(nearestWay);
    157 
    158             if(m.get(nearestWay) != null){
    159                 newNWay = m.get(nearestWay);
    160                 m.remove(nearestWay);
    161             }
    162162
    163163            newNWay.addNode(nearestNodeIndex + 1, node);
Note: See TracChangeset for help on using the changeset viewer.