Changeset 12104 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-05-11T00:03:24+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r10467 r12104 66 66 Main.main.undoRedo.add(new AddCommand(nnew)); 67 67 getLayerManager().getEditDataSet().setSelected(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 } 68 if (Main.map.mapView != null && !Main.map.mapView.getRealBounds().contains(nnew.getCoor())) { 69 AutoScaleAction.zoomTo(Collections.<OsmPrimitive>singleton(nnew)); 74 70 } 75 71 }
Note:
See TracChangeset
for help on using the changeset viewer.