---
core-dave/src/org/openstreetmap/josm/actions/PasteAction.java | 1 -
core-dave/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff -puN src/org/openstreetmap/josm/actions/PasteAction.java~fix-paste-selection src/org/openstreetmap/josm/actions/PasteAction.java
|
a
|
b
|
public final class PasteAction extends J
|
| 105 | 105 | /* Now execute the commands to add the duplicated contents of the paste buffer to the map */ |
| 106 | 106 | |
| 107 | 107 | Main.main.undoRedo.add(new AddPrimitivesCommand(bufferCopy)); |
| 108 | | //getCurrentDataSet().setSelected(osms); |
| 109 | 108 | Main.map.mapView.repaint(); |
| 110 | 109 | } |
| 111 | 110 | |
diff -puN src/org/openstreetmap/josm/data/osm/DataSet.java~fix-paste-selection src/org/openstreetmap/josm/data/osm/DataSet.java
diff -puN src/org/openstreetmap/josm/command/AddPrimitivesCommand.java~fix-paste-selection src/org/openstreetmap/josm/command/AddPrimitivesCommand.java
|
a
|
b
|
public class AddPrimitivesCommand extend
|
| 34 | 34 | for (int i=0; i<createdPrimitives.size(); i++) { |
| 35 | 35 | createdPrimitives.get(i).load(data.get(i), getLayer().data); |
| 36 | 36 | } |
| 37 | | |
| | 37 | getLayer().data.setSelected(createdPrimitives); |
| 38 | 38 | return true; |
| 39 | 39 | } |
| 40 | 40 | |