Changeset 35174 in osm for applications
- Timestamp:
- 2019-10-05T17:00:10+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/SelectBoundaryAction.java
r35098 r35174 21 21 import org.openstreetmap.josm.data.osm.Way; 22 22 import org.openstreetmap.josm.gui.MainApplication; 23 import org.openstreetmap.josm.gui.MapView; 23 24 import org.openstreetmap.josm.gui.Notification; 24 25 import org.openstreetmap.josm.tools.Shortcut; … … 57 58 } 58 59 } 59 } else { 60 Point p = MainApplication.getMap().mapView.getMousePosition(); 60 } else if (MainApplication.isDisplayingMapView()) { 61 MapView mapView = MainApplication.getMap().mapView; 62 Point p = mapView.getMousePosition(); 61 63 if (p != null) { 62 SelectByInternalPointAction.performSelection( MainApplication.getMap().mapView.getEastNorth(p.x, p.y), false, false);64 SelectByInternalPointAction.performSelection(mapView.getEastNorth(p.x, p.y), false, false); 63 65 } 64 66 return;
Note:
See TracChangeset
for help on using the changeset viewer.