Changeset 393 in josm for trunk


Ignore:
Timestamp:
2007-10-15T23:01:05+02:00 (17 years ago)
Author:
gebner
Message:

Allow splitting of circular ways at the endpoints.

File:
1 edited

Legend:

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

    r378 r393  
    203203                // first way chunk.
    204204                List<Node> lastWayChunk = wayChunks.get(wayChunks.size() - 1);
    205                 if (wayChunks.size() >= 2 && wayChunks.get(0).get(0) == lastWayChunk.get(lastWayChunk.size() - 1)) {
     205                if (wayChunks.size() >= 2
     206                                && wayChunks.get(0).get(0) == lastWayChunk.get(lastWayChunk.size() - 1)
     207                                && !nodeSet.contains(wayChunks.get(0).get(0))) {
    206208                        lastWayChunk.remove(lastWayChunk.size() - 1);
    207209                        lastWayChunk.addAll(wayChunks.get(0));
Note: See TracChangeset for help on using the changeset viewer.