- Timestamp:
- 2015-09-23T20:50:04+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r6977 r8790 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.KeyEvent; 9 import java.util.Collections; 9 10 10 11 import org.openstreetmap.josm.Main; … … 12 13 import org.openstreetmap.josm.data.coor.LatLon; 13 14 import org.openstreetmap.josm.data.osm.Node; 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 16 import org.openstreetmap.josm.gui.dialogs.LatLonDialog; 15 17 import org.openstreetmap.josm.tools.Shortcut; … … 64 66 Main.main.undoRedo.add(new AddCommand(nnew)); 65 67 getCurrentDataSet().setSelected(nnew); 66 Main.map.mapView.repaint(); 68 if (Main.map.mapView.getRealBounds().contains(nnew.getCoor())) { 69 Main.map.mapView.repaint(); 70 } else { 71 AutoScaleAction.zoomTo(Collections.<OsmPrimitive>singleton(nnew)); 72 } 67 73 } 68 74
Note:
See TracChangeset
for help on using the changeset viewer.