Ticket #14620: AddPrimitivesCommand-undo-ordering-pb.patch
File AddPrimitivesCommand-undo-ordering-pb.patch, 851 bytes (added by , 8 years ago) |
---|
-
josm/core/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java
135 135 } 136 136 createdPrimitives = PurgeCommand.topoSort(createdPrimitives); 137 137 } 138 for (OsmPrimitive osm : createdPrimitives) { 138 for (int i = createdPrimitives.size()-1; i >= 0; i--) { 139 OsmPrimitive osm = createdPrimitives.get(i); 139 140 Optional<PrimitiveData> previous = preExistingData.stream().filter(pd -> pd.getUniqueId() == osm.getUniqueId()).findAny(); 140 141 if (previous.isPresent()) { 141 142 osm.load(previous.get());