Changeset 772 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2008-08-12T11:59:22+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r674 r772 96 96 for (Way w : Main.ds.ways) { 97 97 if (w.deleted || w.incomplete) continue; 98 int last = w.nodes.size()-1; 99 int i = 0; 98 100 for (Node wn : w.nodes) { 99 if ( n.equals(wn)) {101 if ((i > 0) && (i < last) && n.equals(wn)) { 100 102 Integer old = wayOccurenceCounter.get(w); 101 103 wayOccurenceCounter.put(w, (old == null) ? 1 : old+1); 102 104 break; 103 105 } 106 i++; 104 107 } 105 108 } … … 107 110 if (wayOccurenceCounter.isEmpty()) { 108 111 JOptionPane.showMessageDialog(Main.parent, 109 trn("The selected node is no tpart of any way.",110 "The selected nodes are no tpart of any way.", selectedNodes.size()));112 trn("The selected node is no inner part of any way.", 113 "The selected nodes are no inner part of any way.", selectedNodes.size())); 111 114 return; 112 115 }
Note:
See TracChangeset
for help on using the changeset viewer.