Ignore:
Timestamp:
2016-08-01T23:32:46+02:00 (8 years ago)
Author:
simon04
Message:

fix #12815 - Improve way accuracy; show helper line when removing node 0 of closed way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java

    r10382 r10701  
    288288                    p1 = mv.getPoint(nodes.get(index - 1));
    289289                    p2 = mv.getPoint(nodes.get(index + 1));
     290                } else if (targetWay.isClosed()) {
     291                    p1 = mv.getPoint(targetWay.getNode(1));
     292                    p2 = mv.getPoint(targetWay.getNode(nodes.size() - 2));
    290293                }
    291294                // TODO: indicate what part that will be deleted? (for end nodes)
Note: See TracChangeset for help on using the changeset viewer.