Changeset 12104 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-05-11T00:03:24+02:00 (8 years ago)
Author:
michael2402
Message:

Do not force a map repaint when adding a node - map view does this by itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java

    r10467 r12104  
    6666        Main.main.undoRedo.add(new AddCommand(nnew));
    6767        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));
    7470        }
    7571    }
Note: See TracChangeset for help on using the changeset viewer.