Changeset 6333 in josm for trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
- Timestamp:
- 2013-10-27T03:20:19+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r6289 r6333 261 261 setEnabled(getCurrentDataSet() != null && ! getCurrentDataSet().getSelected().isEmpty()); 262 262 } else if ("layer".equals(mode)) { 263 if ( Main.map == null || Main.map.mapView == null|| Main.map.mapView.getAllLayersAsList().isEmpty()) {263 if (!Main.isDisplayingMapView() || Main.map.mapView.getAllLayersAsList().isEmpty()) { 264 264 setEnabled(false); 265 265 } else {
Note:
See TracChangeset
for help on using the changeset viewer.