Changeset 2343 in josm for trunk/src/org/openstreetmap/josm/actions/ZoomInAction.java
- Timestamp:
- 2009-10-28T20:14:07+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ZoomInAction.java
r2323 r2343 20 20 21 21 public void actionPerformed(ActionEvent e) { 22 if ( Main.map == null) return;22 if (!Main.isDisplayingMapView()) return; 23 23 Main.map.mapView.zoomToFactor(0.9); 24 24 } … … 27 27 protected void updateEnabledState() { 28 28 setEnabled( 29 Main.map != null 30 && Main.map.mapView != null 29 Main.isDisplayingMapView() 31 30 && Main.map.mapView.hasLayers() 32 31 );
Note:
See TracChangeset
for help on using the changeset viewer.