Ticket #175: patch.2.txt

File patch.2.txt, 1.0 KB (added by frsantos@…, 19 years ago)

Previous patch was wrong. This is the good one

Line 
1Index: /home/frsantos/Proyectos/JOSM/core/src/org/openstreetmap/josm/actions/CombineWayAction.java
2===================================================================
3--- /home/frsantos/Proyectos/JOSM/core/src/org/openstreetmap/josm/actions/CombineWayAction.java (revision 265)
4+++ /home/frsantos/Proyectos/JOSM/core/src/org/openstreetmap/josm/actions/CombineWayAction.java (working copy)
5@@ -55,6 +55,9 @@
6 return;
7 }
8
9+ Way oldWay = selectedWays.poll();
10+ Way newWay = new Way(oldWay);
11+
12 // collect properties for later conflict resolving
13 Map<String, Set<String>> props = new TreeMap<String, Set<String>>();
14 for (Way w : selectedWays) {
15@@ -62,11 +65,10 @@
16 if (!props.containsKey(e.getKey()))
17 props.put(e.getKey(), new TreeSet<String>());
18 props.get(e.getKey()).add(e.getValue());
19+ newWay.put(e.getKey(), e.getValue());
20 }
21 }
22
23- Way oldWay = selectedWays.poll();
24- Way newWay = new Way(oldWay);
25 LinkedList<Command> cmds = new LinkedList<Command>();
26
27 for (Way w : selectedWays)