Changeset 10467 in josm for trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
- Timestamp:
- 2016-06-24T00:30:42+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r10382 r10467 66 66 Main.main.undoRedo.add(new AddCommand(nnew)); 67 67 getLayerManager().getEditDataSet().setSelected(nnew); 68 if (Main.map.mapView.getRealBounds().contains(nnew.getCoor())) { 69 Main.map.mapView.repaint(); 70 } else { 71 AutoScaleAction.zoomTo(Collections.<OsmPrimitive>singleton(nnew)); 68 if (Main.map.mapView != null) { 69 if (Main.map.mapView.getRealBounds().contains(nnew.getCoor())) { 70 Main.map.mapView.repaint(); 71 } else { 72 AutoScaleAction.zoomTo(Collections.<OsmPrimitive>singleton(nnew)); 73 } 72 74 } 73 75 }
Note:
See TracChangeset
for help on using the changeset viewer.
