Changeset 12726 in josm for trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
- Timestamp:
- 2017-09-04T23:45:49+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r12641 r12726 12 12 import org.openstreetmap.josm.command.AddCommand; 13 13 import org.openstreetmap.josm.data.coor.LatLon; 14 import org.openstreetmap.josm.data.osm.DataSet; 14 15 import org.openstreetmap.josm.data.osm.Node; 15 16 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 66 67 67 68 // add the node 68 MainApplication.undoRedo.add(new AddCommand(nnew)); 69 getLayerManager().getEditDataSet().setSelected(nnew); 69 DataSet ds = getLayerManager().getEditDataSet(); 70 MainApplication.undoRedo.add(new AddCommand(ds, nnew)); 71 ds.setSelected(nnew); 70 72 MapView mapView = MainApplication.getMap().mapView; 71 73 if (mapView != null && !mapView.getRealBounds().contains(nnew.getCoor())) {
Note:
See TracChangeset
for help on using the changeset viewer.