Ticket #3804: join-node-way-fix.patch
| File join-node-way-fix.patch, 1.1 KB (added by , 16 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/JoinNodeWayAction.java
59 59 60 60 Collection<Command> cmds = new LinkedList<Command>(); 61 61 for (Map.Entry<Way, List<Integer>> insertPoint : insertPoints.entrySet()) { 62 List<Integer> is = insertPoint.getValue(); 63 if (is.size() == 0) 64 continue; 65 62 66 Way w = insertPoint.getKey(); 63 67 List<Node> nodesToAdd = w.getNodes(); 64 List<Integer> is = insertPoint.getValue();65 68 pruneSuccsAndReverse(is); 66 69 for (int i : is) { 67 70 nodesToAdd.add(i+1, node); … … 71 74 cmds.add(new ChangeCommand(w, wnew)); 72 75 } 73 76 77 if (cmds.size() == 0) 78 return; 79 74 80 Main.main.undoRedo.add(new SequenceCommand(tr("Join Node and Line"), cmds)); 75 81 Main.map.repaint(); 76 82 }
