Changeset 570 in josm for trunk/src/org


Ignore:
Timestamp:
2008-02-28T22:30:02+01:00 (17 years ago)
Author:
tom_e
Message:

Clarify prompt when trying to split a circular way (#493)

File:
1 edited

Legend:

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

    r529 r570  
    207207                                && wayChunks.get(0).get(0) == lastWayChunk.get(lastWayChunk.size() - 1)
    208208                                && !nodeSet.contains(wayChunks.get(0).get(0))) {
     209                        if (wayChunks.size() == 2) {
     210                                JOptionPane.showMessageDialog(Main.parent, tr("You must select two or more nodes to split a circular way."));
     211                                return;
     212                        }
    209213                        lastWayChunk.remove(lastWayChunk.size() - 1);
    210214                        lastWayChunk.addAll(wayChunks.get(0));
Note: See TracChangeset for help on using the changeset viewer.